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

Filtered Reports

Status
Not open for further replies.

GLENEE

Programmer
Feb 9, 2005
64
0
0
GB
I have a form that displays all the records from a table. On this form i have a button that runs a report displaying the same records. What i want to do is apply a filter to the form and then run the report displaying only the filtered records from the form.Is this possible? I assume i have to put something in the following line to filter but i'm not sure of the syntax: DoCmd.OpenReport "rptCaseSummary", acPreview, "", ""
Any advice would be appreciated. Thanks
 
ok, solved it, just added Me.Filter into the criterion.
 
NB: Remember to reset the filter - Me.Filter = "" after the report has run
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top