Main Swithchboard

ecuevas

Registered User.
Local time
Yesterday, 19:53
Joined
Jun 18, 2007
Messages
74
I need to put a button on my main switchboard that will unhide the thing that has all the forms and tables on it. Does anyone know how to do this?
 
the thing you are referring to is the database window. search the forum you will find your answer
 
The link above is to hide the database window. I know to hide and unhide it by going to Window on the toolbar, but I want to know how to put a button on the main switchboard that will unhide the database window. Does anyone know how I can do this?
 
Last edited:
From the url i just gave you

To hide the database window:

Private Sub cmdHide_Click()
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
End Sub

To show the database window:

Private Sub cmdShow_Click()
DoCmd.SelectObject acTable, , True
DoCmd.SelectObject acForm, Me.Name
End Sub
 
Nevermind, I figured it out. I made a macro with RunCommand as the Action and I chose WindowUnhide as the Command.
 

Users who are viewing this thread

Back
Top Bottom