M
Matuag
My form has a Exit button which takes excessively long time to close
the form. I have tried both macro and VBA code such as following
without any success.
Private Sub Exit_Click()
On Error GoTo Err_Exit_Click
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Close
Exit_Exit_Click:
Exit Sub
Err_Exit_Click:
MsgBox Err.Description
Resume Exit_Exit_Click
End Sub
What could be the problem?
the form. I have tried both macro and VBA code such as following
without any success.
Private Sub Exit_Click()
On Error GoTo Err_Exit_Click
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Close
Exit_Exit_Click:
Exit Sub
Err_Exit_Click:
MsgBox Err.Description
Resume Exit_Exit_Click
End Sub
What could be the problem?