A family of Microsoft relational database management systems designed for ease of use.
DId you create that directory? Because there is no *C:\My Documents...* on Windows 7 machines, it would C:\Users\YourComputersName\Documents\*
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
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"
End Sub
Thank you
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
DId you create that directory? Because there is no *C:\My Documents...* on Windows 7 machines, it would C:\Users\YourComputersName\Documents\*
You're most welcome!
Thank you! You are absolutely right. I managed to get windows explorer show the path to the directory that could be pasted into the code and now it works like magic. Thank you again!