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

Update RecordSource in SubReport

Status
Not open for further replies.

ptiernan

IS-IT--Management
Apr 29, 2003
55
GB
Hi, I have a problem with our Access 97 application. I have created a form that works just like a query builder with a number of options, after OK is pressed the form opens a report and outputs the data as filtered in the form. Within the form use case and if loops to generate the WHERE condition I wish to use in my DoCmd.OpenReport method as below.

DoCmd.OpenReport "R_Client_Into_Training", acViewPreview, , where_stat

The problem arises when I want to run a report with several subreports in it. There are 4 different subreports with 2 with one WHERE condition and 2 with another.

Within the form I have 2 hidden text fields with both options for the WHERE condition.

I don’t know if I want to be updating the RecordSource for the report and if so when and how to do it.

Much Thanks
Paul Tiernan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top