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
..........................................................................