I am using a button on a form to output a report. The code looks like this:
Code:
Private Sub cmdSave_Click()
DoCmd.OutputTo acOutputReport, "rptEmailREport", acFormatPDF, , False, "", 0
End Sub
The code seems to work, it just does this obnoxious thing where if the user desides after pressing the button that they no longer wish to output the file and they push cancel instead of ok from the file dialog box, access displays a runtime error advising the user that the output was canceled. I'd like to supress this error as I don't see it as being useful to the end user. can anyone advise on how best to do that?
Thanks!
Bruce