Resume Without Error?

D

Dave Elliott

I have a orders form and on it is a command button that runs the below
code.
The code errors out if the user cancels the new object action.
The error message is Resume Without Error
Trying to let the user create labels.


On Error GoTo Err_Command1_Click

DoCmd.RunCommand acCmdNewObjectReport
DoCmd.Close acForm, "Orders"


Exit_Command1_Click:


Err_Command1_Click:
MsgBox err.Description
Resume Exit_Command1_Click
 
A

Arvin Meyer

Dave Elliott said:
I have a orders form and on it is a command button that runs the below
code.
The code errors out if the user cancels the new object action.
The error message is Resume Without Error
Trying to let the user create labels.


On Error GoTo Err_Command1_Click

DoCmd.RunCommand acCmdNewObjectReport
DoCmd.Close acForm, "Orders"


Exit_Command1_Click:

On Error Resume Next '<<<<Try this
 
Top