Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding and Unhiding Forms 1

Status
Not open for further replies.

twench

Technical User
Feb 16, 2005
5
GB
I want to be able to hide and unhide forms as I navigate through the database. I have put DoCmd.RunCommand acCmdWindowHide in the OnClick() event of command buttons on the main switchboard, which works beautifully!

However, when I come back the other way using "DoCmd.RunCommand acCmdWindowUnhide" to restore the main switchboard on closing the form I get a message box titled Unhide Window displaying the caption for the hidden switchboard which I have to select and cick okay.

Is it possible to bypass this message so that the single hidden object is automatically selected and unhidden?
 
How about:

[tt]Forms!frmForm.Visible = True[/tt]

 
Thanks Remou - this worked a treat. Nice and fast too!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top