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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Neat" Filter Criteria in Report

Status
Not open for further replies.

newtech2

Technical User
May 22, 2002
18
US
I have a button on a form which takes the records from a filter and prints them on a report. I have added this code to the report to reflect the filter criteria:

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)

Let Me.txtFilter = Forms("[My Report Name]").Filter

End Sub

Which works great, but it needs to be a little "cleaner" by not including the name of the query, etc. All I want to see is what the selection was in "filter by selection" to neatly include in the report header. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top