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

Refering to recordsource of subreport

Status
Not open for further replies.

vgnmnky

Technical User
Sep 30, 2002
13
GB
I have a report containing 'Actions' linked via an 'ActionID' field to a subreport containing 'Progress'. By default, the subreport repProgress lists all the Progress records for each Action.

However, on a form, I want to give users the option to see the same report, but with the latest Progress only. I have two queries, qryProgress and qryProgessLast (field names are identical). I'm trying to change the recordsource of repProgress to qryProgressLast when applicable.

I'm making a nice collection of error messages, but not a great deal of headway! I've tried putting code in the OnOpen event of the main report and the subreport, but no joy. I may be barking up the wrong tree altogether..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top