I have a report that details customers and the items they have bought. The "Detail" section of the main report houses a subreport which displays all the items for that particular customers order. The customer may have more than one order but only one invoice is displayed at a time.
In this subreport within the "Report Footer" section there is a text box whose control source is the sum of all the totals within the subreport.
On the main report in the "Page Footer" section I'm trying to reference this invisible total but all I'm getting is the total for the next group of records instead.
Yet if I put this same text box into the "Detail" section of the main report i.e. where the subreport is, it works fine and displays the expected total.
It's only when it's in the "Page Footer" section that it seems to not work. Even putting it in "Page Header" works but it looks stupid.
I hope I've explained this well. Can anyone help - its driving me nuts!!
In this subreport within the "Report Footer" section there is a text box whose control source is the sum of all the totals within the subreport.
On the main report in the "Page Footer" section I'm trying to reference this invisible total but all I'm getting is the total for the next group of records instead.
Yet if I put this same text box into the "Detail" section of the main report i.e. where the subreport is, it works fine and displays the expected total.
It's only when it's in the "Page Footer" section that it seems to not work. Even putting it in "Page Header" works but it looks stupid.
I hope I've explained this well. Can anyone help - its driving me nuts!!