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
 
Top