Set report criteria in code?

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
 
D

Duane Hookom

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top