G
Guest
I need to "automatically" export a report to a pdf file. Currently the report
is run from a form in which the user enters various "where" condition
criteria in various input controls. When they click the "Run Report" button
the routine constructs the where condition and uses the following command:
"DoCmd.OpenReport strRpt, acViewPreview, , strWhere".
I desperately want to use Mr. Lebans work as it will make my life and the
lives of my users substantially better but I don't know how to implement the
where condition. In the ReportToPDF routine there's a parameter for "Report
Name" and I see it uses the DoCmd.OutputTo command and none of these have a
similar parameter for a "where" condition.
I'm sure there's a simple answer to this but I've stumbled into a hole in my
Access knowledge. If anybody can help me dig out of it I'd sure appreciate it.
Cheers,
Jon
is run from a form in which the user enters various "where" condition
criteria in various input controls. When they click the "Run Report" button
the routine constructs the where condition and uses the following command:
"DoCmd.OpenReport strRpt, acViewPreview, , strWhere".
I desperately want to use Mr. Lebans work as it will make my life and the
lives of my users substantially better but I don't know how to implement the
where condition. In the ReportToPDF routine there's a parameter for "Report
Name" and I see it uses the DoCmd.OutputTo command and none of these have a
similar parameter for a "where" condition.
I'm sure there's a simple answer to this but I've stumbled into a hole in my
Access knowledge. If anybody can help me dig out of it I'd sure appreciate it.
Cheers,
Jon