I am using the following vba statement:
DoCmd.OutputTo acOutputReport, RepName, acFormatPDF, FileLocation, False, "", 0, acExportQualityPrint
to create a pdf file of a report. It works well in Access 2007 but not in 2010. I get an error code 2501. All I want is a pdf file of a report, generated in VBA. What can I do?