Export Report As PDF

abbaddon223

Registered User.
Local time
Yesterday, 20:46
Joined
Mar 13, 2010
Messages
162
Hi,

I'm trying to export a report as PDF giving it a name at the same time. I'll then email this out.

The email bit I'm fine with, but I'm struggling to get the report to save as a PDF

Dim outputFileName As String
outputFileName = CurrentProject.Path & "\Mail_Merges\Templates\Bulk\Email Quote From Dialler\" & "Quote" & [Quote_URN] & ".csv"
DoCmd.OutputTo acOutputReport, "Digital Service Cover Quote", acFormatPDF, outputFileName

Any help with this would be greatly appreciated!!

Phil.
 
What exactly do you mean that it is not saving the file?

You do realise that you have use acFormatPDF but saving a CSV file right?
 
Nooooooooo!!! The shame :banghead:

Thanks mate!!
 
No shame in learning something.. :) You're welcome.. Good luck !
 

Users who are viewing this thread

Back
Top Bottom