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
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