Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing the 'Filter' used to Report as text

Status
Not open for further replies.

dws21

IS-IT--Management
May 31, 2001
6
GB
I have a Form that has a command button with a link to a report with code to print just those records filtered, which works fine.

I would like to be able to pass the filter used to the report so that it can printed in that report's footer. I tried using a field on the report set to Me.Filter as it's control source, but when run it prompts you for this.

Any ideas on how I can print out the filter used to the report footer would be most appreciated.

TIA - David
 
Make an unbound text box on your report and set it's ControlSource to this:

=[Reports]![MyReportName].[Filter]

HTH

Joe Miller
joe.miller@flotech.net
 
You may want to show that there is no Filter enabled, to do that you can set the ControlSource equal to an IIf that checks the filter first like so:

=IIf([Reports]![MyReportName].[Filter]="","None",[Reports]![MyReportName].[Filter])

HTH Joe Miller
joe.miller@flotech.net
 
Joe,

Many thanks, that was exactly the info I needed, works a treat!

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top