Minimize Switchboard form with Command Button click event

  • Thread starter Thread starter zSplash
  • Start date Start date
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
 
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
 
Back
Top