Close first form

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!
 
S

Sam

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top