Minimizing Access

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

Guest

I’ve created a Command Button that minimizes the form I'm currently on, but I
want it to minimize Access. Is this possible?
 
Hi,

on the command buttons 'on click' select [event procedure] and place this
code
Change Command5 to whatever your buttons name is:

...............................................................................
.............
Private Sub Command5_Click()
On Error GoTo Err_Command5_Click


DoCmd.RunCommand acCmdAppMinimize
Exit_Command5_Click:
Exit Sub

Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click

End Sub
..........................................................................
 
Back
Top