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