Unhiding database-window

T

Tellu

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.
 
T

Tellu

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.
 
F

freakazeud

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
 
Top