Hideing a form

C

Chad

Hello, I have a button on my form (Maindb) thats named ReportsSwitchboard and
when clicked it brings up a form that is a paramater form. Is there some way
to hide the MaindB form when the ReportsSwitchboard is open and when the
ReportsSwitchboard is closed the MaindB form isnt hidden anymore. Please
explaing because im new to Access... Thanks!
 
O

Ofer Cohen

On the OnClick event of ReportsSwitchboard write the code

Me.Visible=False

And use the UnLoad event of the ReportsSwitchboard to set it back to visible

Forms![Maindb].Visible = True
 

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