In design view, with the properties window open, click on the button you want to add the close to, and select the Event tab from the properties window.
Next click the elipse button on the On Click Event(...), and select code builder. Let's say your button was named cmdClose, then you should see this:
=====
Private Sub cmdClose_Click()
End Sub
=====
Now make it look like this:
=====
Private Sub cmdClose_Click()
DoCmd.Close
End Sub
=====
Close and save the form. Jim Lunde
compugeeks@hotmail.com
Custom Application Development