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 the subreports 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.
Here's the set-up:
1. In the Report Footer for each subreport, I put a text box that pulls the Total I need from that subreport.
2. In the main report, I put a text box for each of the subreports - the first referencing that total box from Subreport1, the second referencing that total box from Subreport2. I put the text boxes in the Detail section (although I've even tried creating variuos other footers - same result)
3. In the main report's Report Footer, I put a second set of text boxes that simply refer to the text boxes in #2 above.
When I run the main report, the text boxes in the Report Footer only give the data from the last record pulled, instead of a grand total from all the records. (each of the totals from the subreports stand on their own - they don't get added together).
Does anyone know why it's only pulling the last record in the main report, when the subreports give a correct grand total when run on their own?
+Tammy
The subreports work fine when opened on their own - I get the correct totals.
However, when I place the subreports 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.
Here's the set-up:
1. In the Report Footer for each subreport, I put a text box that pulls the Total I need from that subreport.
2. In the main report, I put a text box for each of the subreports - the first referencing that total box from Subreport1, the second referencing that total box from Subreport2. I put the text boxes in the Detail section (although I've even tried creating variuos other footers - same result)
3. In the main report's Report Footer, I put a second set of text boxes that simply refer to the text boxes in #2 above.
When I run the main report, the text boxes in the Report Footer only give the data from the last record pulled, instead of a grand total from all the records. (each of the totals from the subreports stand on their own - they don't get added together).
Does anyone know why it's only pulling the last record in the main report, when the subreports give a correct grand total when run on their own?
+Tammy