I am trying to send the output from a report to a pdf file that I will name but I can't seem to get it working:
I am using this simple command that is associated with the click event of a command button:
DoCmd.OutputTo acOutputReport, "CE7" , acFormatPDF, "testFile.pdf"
The name of the report is CE7 and the name of the pdf file to output is testFile.pdf.
I am getting the following error. The report works fine. Is the above syntax correct. What am I missing?
Thanks for your feed back