Minimize & Maximize in a Form/Module

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

Guest

I have inherited a project management Access database.
In this database, there are forms or modules that come up
as forms. My manager wants me to add Minimize and
Maximize buttons on them. I thought it would be simple
enough to go into the properties box and enable them, but
when I do, they do not show up on the little forms. I
found some code DOcmd.Minimize and Docmd.Maximize, but I
don't know where to put it. Can anyone walk me through
this? Thanks.
 
Add to command buttons to you form and use the following code. I named my
command buttons as below.

Private Sub cmdMax_Click()
DoCmd.Maximize
End Sub

Private Sub cmdMin_Click()
DoCmd.Restore
End Sub
 
Back
Top