I have a report based on a large table, so I have to pull the data in via subreports (can't have more than 255 data fields on a report).
The subreports work fine when opened on their own - I get the correct totals.
However, when I place them into the main report's detail (or any!) section, & then in the Report Footer try to get the Grand Totals, I just get the summary totals from the last record pulled.
I'll try to give an example:
rptReviewSubReport1 has 180 data fields that are getting a sum of all records where the value of the field = 1; then there are 2 other fields that total the 1's, 90 in each field - had to do it in 2 fields because the expression builder wouldn't do all 180 in 1 Control Source!
An example of 1 of the fields is:
fldRR001Y whose Control Source = =Abs(Sum([RR001]="1"))
All the other fields follow suit, just the "001" part changes.
The total fields look like this:
fldSumOfYesSub1 whose control source is =[fldRR010Y]+[fldRR007Y]+[fldRR008Y] (and so on, for 90 of the fields)
The 2nd subreport is just like the first one, except it's totalling the records where the value = 3
When I put a Report Footer in the subreports & add a field for the total 1's or the total 3's, I get the correct total of all the 1's for all of the records, same with the 3's
However: when I put the 2 subreports into the main report (again, no matter what section), & then in the Report Footer of the main report I try to get those same totals as in the subreport report footers, I just get the total 1's & 3's from the last record instead of a grand total.
I hope this explanation makes sense to someone!! I'm really stuck here!
Thanks.
+Tammy
The subreports work fine when opened on their own - I get the correct totals.
However, when I place them into the main report's detail (or any!) section, & then in the Report Footer try to get the Grand Totals, I just get the summary totals from the last record pulled.
I'll try to give an example:
rptReviewSubReport1 has 180 data fields that are getting a sum of all records where the value of the field = 1; then there are 2 other fields that total the 1's, 90 in each field - had to do it in 2 fields because the expression builder wouldn't do all 180 in 1 Control Source!
An example of 1 of the fields is:
fldRR001Y whose Control Source = =Abs(Sum([RR001]="1"))
All the other fields follow suit, just the "001" part changes.
The total fields look like this:
fldSumOfYesSub1 whose control source is =[fldRR010Y]+[fldRR007Y]+[fldRR008Y] (and so on, for 90 of the fields)
The 2nd subreport is just like the first one, except it's totalling the records where the value = 3
When I put a Report Footer in the subreports & add a field for the total 1's or the total 3's, I get the correct total of all the 1's for all of the records, same with the 3's
However: when I put the 2 subreports into the main report (again, no matter what section), & then in the Report Footer of the main report I try to get those same totals as in the subreport report footers, I just get the total 1's & 3's from the last record instead of a grand total.
I hope this explanation makes sense to someone!! I'm really stuck here!
Thanks.
+Tammy