Hi all,
I've produced a simple reporting application based on date specific data. To improve daily querying speeds I've created two versions of each table (Daily, and Archived). There are 4 tables in total.
The main report has code in the Report_Open event to determine whether it's record source will come from the Daily table or the Archive table.
No problems there.
However I'm having trouble getting the subreport to do the same.
I have tried the following already:
In the Report_Open event: Me.AREPORT_subreport.Report.RecordSource = strSQL
Error: Expression has an invalid reference to the property Form/Report
In the subreport_Open event: Me.RecordSource = strSQL
Error: Can't set the RecordSource property after printing has started
Setting Subreport recordsource before opening the main report:
Error: Can't find AREPORT_subreport (i.e. not open)
Can anyone swing some other suggestions my way, or a correct sollution to this.
All help much appreciated.
remy Still new to DB's and enjoying learning day by day
I've produced a simple reporting application based on date specific data. To improve daily querying speeds I've created two versions of each table (Daily, and Archived). There are 4 tables in total.
The main report has code in the Report_Open event to determine whether it's record source will come from the Daily table or the Archive table.
No problems there.
However I'm having trouble getting the subreport to do the same.
I have tried the following already:
In the Report_Open event: Me.AREPORT_subreport.Report.RecordSource = strSQL
Error: Expression has an invalid reference to the property Form/Report
In the subreport_Open event: Me.RecordSource = strSQL
Error: Can't set the RecordSource property after printing has started
Setting Subreport recordsource before opening the main report:
Error: Can't find AREPORT_subreport (i.e. not open)
Can anyone swing some other suggestions my way, or a correct sollution to this.
All help much appreciated.
remy Still new to DB's and enjoying learning day by day