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.
 
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
 
Top