Close first form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two forms: form A and Form B. Form A has a button to open form B. I
want to have form A close when I click the button to open form B. (so Form B
is open and Form A closes). Is there an easy command for this?
TIA!
 
Hi Jenn,

Until someone offers a neater solution, you can try this:

'On form B, on the load/open event
forms("form A").Visible = False

'This will hide form A when form B opens.

'On form B's close event
forms("form A").Visible = True

'this will show form a again, when form closes.


Hope this helps you!

Kind Regards,
Sam
 
Back
Top