I have a print button in the report header. Here is the simple code I have behind the button:
Private Sub cmdPrint_Click()
DoCmd.RunCommand acCmdPrint
End Sub
However, if I cancel the print I get this error:
Run-time error '2501':
The RunCommand action was canceled.
Does anyone know how to get rid of this?