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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

ranman256

Well-known Member
Joined
Jun 17, 2014
Messages
1,974
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,352
Messages
5,635,785
Members
416,882
Latest member
ericvrealty

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
Top