Can I programmatically "Hide" or "Unhide" a form...

F

fredg

...rather than closing it? (Like the options in the "Window" menu).

Thanks

To hide a form you can make it not visible.
From within the form:
Me.Visible = False

From outside the form:
forms!FormName.Visible = False

To un-hide it:
forms!FormName.Visible = True
 
D

Dirk Goldgar

Dave Holmes said:
...rather than closing it? (Like the options in the "Window" menu).

Sure, by setting its Visible property. For example:

Forrms!MyForm.Visible = False ' hide MyForm
Forrms!MyForm.Visible = True ' show MyForm again
 

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