K krc547 Member Local time Today, 04:52 Joined Sep 1, 2023 Messages 38 Nov 16, 2023 #1 I have a button on my report and have this as the code: DoCmd.OutputTo acOutputReport, "rFiscal-Month Comparison", acFormatXLSX, "C:\Users\kcummings\Desktop", True But it just errors out and says it can not export the report.
I have a button on my report and have this as the code: DoCmd.OutputTo acOutputReport, "rFiscal-Month Comparison", acFormatXLSX, "C:\Users\kcummings\Desktop", True But it just errors out and says it can not export the report.
C CJ_London Super Moderator Staff member Local time Today, 09:52 Joined Feb 19, 2013 Messages 17,321 Nov 16, 2023 #2 Check the parameters- looks like you need to include a file name
K krc547 Member Local time Today, 04:52 Joined Sep 1, 2023 Messages 38 Nov 16, 2023 #3 That was it, I forgot to give it a name. I have a parameter in the report that asks for the fiscal year. But then when I click the button to export the report it asks me the same questions like 5 times before it actually exports the file.
That was it, I forgot to give it a name. I have a parameter in the report that asks for the fiscal year. But then when I click the button to export the report it asks me the same questions like 5 times before it actually exports the file.
Gasman Enthusiastic Amateur Local time Today, 09:52 Joined Sep 21, 2011 Messages 16,281 Nov 16, 2023 #4 Try using the Intellisense ?