Access 2010-ExportWithFormatting-Can't save the output data to the file you've selected

xjasax

New Member
Joined
Sep 4, 2014
Messages
2
Hallo,
I use access macro ExprtWihFormatting.

Sometimes I get error "Can't save the output data to the file you've selected".( I don't know why)

example Output file: ="C:\Users\xjasax\Documents\Reports\Report- " & [Forms]![Form1]![Text439] & ".pdf"
I have few report to output in same macro

Can I make some in makro if error on one of them then retry that report,bacause I have to retry that all macro or can I do something to solve problem with error?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
For pdf , dont you want:
DoCmd.OutputTo acOutputReport, rpt, acFormatPDF, "C:\Users\xjasax\Documents\Reports\Report- " & [Forms]![Form1]![Text439] & ".pdf"

(i'm not sure a macro can interpret : [Forms]![Form1]![Text439] )
it must be done in vba code.
 
Upvote 0

Forum statistics

Threads
1,211,879
Messages
6,104,528
Members
447,914
Latest member
karl10220

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top