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

Using data from a filtered subform in a report

Status
Not open for further replies.

akcam2006

MIS
Jan 20, 2005
8
US
How do use data from a filtered subform in a report?

I would like for the report to only list items that come from the filtered sub form.
 
You can possibly extract the filter value with syntax like:
Forms!frmMain!sfrmCntrlName.Form.Filter
You might then use this value as the where clause in the docmd.openreport method.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top