Limit data in report when printing to pdf

TimTDP

Registered User.
Local time
Today, 18:08
Joined
Oct 24, 2008
Messages
213
With Access 2010, I use the following to print to pdf:

DoCmd.OutputTo acOutputReport, strReportName, acFormatPDF, FolderPath & "\" & strReportCommonName & ".pdf", False, , , acExportQualityPrint

How can I add a filter (where) to the above to limit the records in the report

If I am not printing to pdf I use:

DoCmd.OpenReport strReportName, optReportOutput, , Wclause

I need something simillar!

Thanks
 
From here and other reading I believe that you will need to apply your filter to the Report's Record Source prior to calling DoCmd.OutputTo.
 

Users who are viewing this thread

Back
Top Bottom