Hi all,
I'm sure this is on the web somewhere, but I just can't seem to find it!
I currently have a simple piece of code:
My problem is that when the save as dialogue appears, if the user then clicks either close or cancel, error 2501 appears - "The OutputTo action was canceled."
Is it possible to just hide this error if it appears and if so, how could I do this?
TIA
I'm sure this is on the web somewhere, but I just can't seem to find it!
I currently have a simple piece of code:
Code:
Private Sub PDF_Click()
DoCmd.OutputTo acOutputReport, , ".pdf", , -1, , 0, acExportQualityPrint
End Sub
My problem is that when the save as dialogue appears, if the user then clicks either close or cancel, error 2501 appears - "The OutputTo action was canceled."
Is it possible to just hide this error if it appears and if so, how could I do this?
TIA