Unhiding database-window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When my Access starts I get an own main form. The database-window is hided. I
want to put a button to my main form which brings the database-window
unhided. How can I do this the simpliest way.
 
I want to link the showing of my batabase-window to the button. With the
macro command RunCommand-WindowShow i get it but I have to choose it from the
list. It should come automatic.
 
Hi,
You can use the following on the on click event of your button:

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

To Hide the database window, run
Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide

HTH
Good luck
 
Back
Top