So you have the Amount field working in the main subreport, but when you
try to sum this Amount field in the Report Footer section of the main
subreport, it doesn't work?
Use a running sum text box to collect the total.
It's properties might look like this:
Control Source =[Amount]
Running Sum Over All
Format Currency
Name txtAmountRS
Visible No
Now in the Report Footer section of the main subreport, add another text
box with Control Source of:
=[txtAmountRS]
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
John said:
Thanks for that. My problem has one more level in that the field 'Amount'
on sub report is defined as =[SumA] + [SumB] where SumA and SumB are
themselves coming from sub reports on the sub report. Hopefully the
diagram below explains it;
Report
|-------------Sub Report
| Amount =[SumA] + [SumB]
|
| SumAmount = sum([Amount]) gives #Error
|
|--------- Sub Sub Report A
| SumA = Sum([A])
|
|
|--------- Sub Sub Report B
SumB = Sum(
)
When on sub report I try to do =Sum[Amount] I get #error. Any solution to
that?
Thanks
Regards
Allen Browne said:
See:
Bring the total from a subreport onto a main report
at:
http://allenbrowne.com/casu-18.html
On a sub report I have a field datetot which is the sum of two fields
those two fields are in turn coming from two further sub reports of the
sub report. How can I take the sum of datetot field to the main report?