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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show/Hide DB window

Status
Not open for further replies.

martiros

Technical User
Feb 1, 2003
113
US
Is there a way in code to show DB window which is set to be hidden on Startup?

Thanks
 
I try to avoid SendKeys, but I can't find a Method or Constant to show the DB window:

SendKeys "{F11}"

Bill
 
The best you can do is:
RunCommand acCmdWindowUnhide
...which will bring up the unhide dialog. You could probably add a SendKeys " " if the database window is the only hidden window. You will get a RTE if no windows are hidden.
 
thank you,
SendKeys "{F11}" does the job.
Is there a way to hide it again with SendKeys ?
 
Hi again,

Not in code, it would have to be done manually during the current session. Window>> Hide.

Don't worry though, it will be hidden the next time you open the DB.

Bill



 
To show the database window
Docmd.SelectObject acTable, , True

To Hide the database window
Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top