=SUM sub-reports ?

piet123

piet
Local time
Today, 15:06
Joined
May 24, 2004
Messages
66
Quote:
Originally Posted by Rich
Use the HasData method, search the archives here for examples

Got it. Thank you. But now this:

1. In MainReport's GROUP FOOTER section I have 3 sub-Reports.
2. In MainReport's GROUP FOOTER section I now also have a textbox
(name 'text123') with the =Iif/HasData function which calculates the "totals" of all 3 sub-reports. This is all OK.

4. In the MainReport's REPORT FOOTER section I tried this:
=sum([text123]) No such luck. When report runs, it prompts for text123.

Any advice please !

Thanks.
Piet.
 
You can't do a Sum on a calculated field....

have you tried using "RunningSum" (overg roup, or over all)
 
sum subreports

jv2 said:
You can't do a Sum on a calculated field....

have you tried using "RunningSum" (overg roup, or over all)

i've tried that. it still prompts for textbox in mainreport footer.

"you can't do a sum on a calculated field..."

- only in a report ?
- or not at all ?
- can i make a query that will calculate the report's calculated field ?
- any other method ?

any advice PLEASE.
thanks,
Piet
 
= Sum(IIf([sub1].[Report].[HasData],[sub1].[Report]![YourTextBox],0) +
Sum(Iif etc etc
 

Users who are viewing this thread

Back
Top Bottom