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!

Filtering Records in Sub-report

Status
Not open for further replies.
May 7, 1999
130
US
Hi!

I've searched my brain, Access 97 & 2000 books, the web and I must be missing something. Hope you can help me.

My report contains a subreport that shows records linked in a parent/child relationship on two fields ("series" and "cycle"). The subreport should show records that match the two fields _unless_ the supervisor's name is "4CD". (Yes, I know 4CD doesn't sound like a supervisor's name!)

My idea was to filter records in the subreport based on the text field in the main report's page header that shows the supervisor's name. I used the following string in the filter property of the subreport:

reports![rptProduction Report]![txtSupervisor]) ="4CD"

That didn't work. I thought, "well, maybe the problem is in my reference." So, I checked and tried to use:

reports![rptProduction Report](acPageHeader)![txtSupervisor]) ="4CD"

Still nothing. Is it the way I specified my reference? Can I not, as one thread indicated, use a filter in a subreport?

I'm now resorting to rethinking how I get records in the subreport in the first place, but I'm not really happy about my failure.

Thanks, John Harkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top