Is there a way to print what I’ve filtered for on a report?

G

Gina K

If I filter a form and use DoCmd.OpenReport “MyReportâ€, acPreview, ,
Me.Filter to open My Report, is there a way to print the filter somewhere on
the report? Something like:

((MyQuery.ACTUALSHIP Between #1/1/2007# And #1/31/2007#) AND
(MyQuery.PARTNUMBER Like "433*"))


Thanks.
 
M

Marshall Barton

Gina said:
If I filter a form and use DoCmd.OpenReport “MyReport”, acPreview, ,
Me.Filter to open My Report, is there a way to print the filter somewhere on
the report? Something like:

((MyQuery.ACTUALSHIP Between #1/1/2007# And #1/31/2007#) AND
(MyQuery.PARTNUMBER Like "433*"))


I believe the report's Filter property will contain the
WhereCondition argument string.

You can then use a text box with the expression:

=Report.Filter
 
G

Gina K

Perfect! Thank you.

Marshall Barton said:
I believe the report's Filter property will contain the
WhereCondition argument string.

You can then use a text box with the expression:

=Report.Filter
 

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