[AccessD] DoCmd.OutputTo problem
rockysmolin at bchacc.com
Thu Jan 24 09:43:35 CST 2019
Actually found what seems to be the solution by removing the last three
arguments and just ending the statement with the file name.
I'll have to see now whether that works on the client's box.
From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
Sent: Thursday, January 24, 2019 6:44 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] DoCmd.OutputTo problem
The format string is incorrect. It is easier to use the constant (resolves
to "PDF Format (*.pdf)":
DoCmd.OutputTo acOutputReport, "rptRentalAgreement", acFormatPDF,
strRAPDFName, False, , , acExportQualityPrint
Fra: AccessD <accessd-bounces at databaseadvisors.com> På vegne af Rocky Smolin
Sendt: 24. januar 2019 15:25
Til: 'Access Developers discussion and problem solving'
<accessd at databaseadvisors.com>
Emne: [AccessD] DoCmd.OutputTo problem
This is Access 2010 question. I have an app which needs to output a report
in pdf format. I'm using the statement:
DoCmd.OutputTo acOutputReport, "rptRentalAgreement", "PDFFormat(*.pdf)",
strRAPDFName, False, "", , acExportQualityPrint
When the program reaches this statement, it does not create the pdf, does
not go to the next statement, and does not give a run time error.
I can't find anything on the web forums addressing this particular problem.
Beach Access Software
AccessD mailing list
AccessD at databaseadvisors.com
More information about the AccessD