I have a command button in Access 2007 that is supposed to save a report called
"CycleReportFresh" as a pdf file in a specified directory under a specified name. It gives me
the following error message:
Run-time error '2501': The OutputTo file action was canceled.
What is wrong with this code?
Private Sub Command193_Click()
DoCmd.OutputTo acOutputReport, "CycleReportFresh", acFormatPDF, "C:\My Documents\Work\P-Data\D-B\rptFoo.pdf"