Set report criteria in code?

  • Thread starter Thread starter Fredrated
  • Start date Start date
F

Fredrated

Is it possible to set a reports criteria in code?

I am trying to use Stephen Lebans report-to-pdf tool, which uses the report
as a parameter. I need to specify a criteria for the report, like I do when
I open the report for printing:
DoCmd.OpenReport strReportName, acViewNormal, , strReportParam

I don't see how to set report criteria in the report-to-pdf tool, but if I
can set the criteria before I use the tool, that should work.

Thanks in advance for any help.

Fred
 
I haven't used Stephens solution but you can always use a little DAO code to
dynamically change the SQL property of a saved query that feeds your report.
 
Back
Top