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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

ranman256

Well-known Member
Joined
Jun 17, 2014
Messages
2,171
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,954
Messages
5,834,567
Members
430,297
Latest member
xa_gta

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