Close command

A

Amateur

I have the following command to close a Form:
Private Sub Mainform_Click()
On Error GoTo Err_Command19_Click


DoCmd.Close

Exit_Mainform_Click:
Exit Sub

Err_Mainform_Click:
MsgBox Err.Description
Resume Exit_Mainform_Click

End Sub

How can I change the command that the DB gets closed and not only the Form.
Thanks
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top