Minimize Switchboard form with Command Button click event

Z

zSplash

When the user clicks CommandButton1, I want the Main Switchboard form (which
is not modal) to become minimized (not closed). Since I already had code in
the click event, I tried the following code in the Exit event for the
command button unsuccessfully:
DoCmd.RunCommand acCmdFormView.Minimize
How can I accomplish this?

TIA
 
K

Ken Snell

Why not just make the switchboard invisible instead of minimizing it? Then
you can make it visible again when you want to use it.

Forms!FormName.Visible = False ' makes it invisible

Forms!FormName.Visible = True ' makes it visible
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top