G
gpeak
Hello -
I have a small Access program that I use for invoicing. I have a recurring
issue with docmd.close command, specifically I receive the message "This
action cannot be carried out while processing a form or report event."
This is a very basic program. This message seems to happen when I attempt
to close a form with no changes being made. In my code, I have the following:
Private Sub cmdExit_Click()
On Error GoTo Err_cmdExit_Click
DoCmd.Close
Exit_cmdExit_Click:
Exit Sub
Err_cmdExit_Click:
MsgBox Err.Description
Resume Exit_cmdExit_Click
End Sub
Any help would be appreciated.
I have a small Access program that I use for invoicing. I have a recurring
issue with docmd.close command, specifically I receive the message "This
action cannot be carried out while processing a form or report event."
This is a very basic program. This message seems to happen when I attempt
to close a form with no changes being made. In my code, I have the following:
Private Sub cmdExit_Click()
On Error GoTo Err_cmdExit_Click
DoCmd.Close
Exit_cmdExit_Click:
Exit Sub
Err_cmdExit_Click:
MsgBox Err.Description
Resume Exit_cmdExit_Click
End Sub
Any help would be appreciated.