I am bringing a calculation into a main report from a subreport with the following formulas:
Formula in the subreport:
WhilePrintingRecords;
Shared CurrencyVar myTotal:=Sum({Orders.Order Amount})
Formula in the main report:
WhilePrintingRecords;
Shared CurrencyVar myTotal;
myTotal
My problem is this: There isn't always a value in the Order Amount field; so there isn't always something to summarize in the subreport groups. Because of this, it carries over the Sum({Orders.Order Amount}) from the group ahead of it into the main report. How do I get it to say 0.00 if the field doesn't contain a value? (Any if/then statements I've tried aren't working.) How would I get it to stop showing the sum from the previous group that contains a value? I have version 10.
Formula in the subreport:
WhilePrintingRecords;
Shared CurrencyVar myTotal:=Sum({Orders.Order Amount})
Formula in the main report:
WhilePrintingRecords;
Shared CurrencyVar myTotal;
myTotal
My problem is this: There isn't always a value in the Order Amount field; so there isn't always something to summarize in the subreport groups. Because of this, it carries over the Sum({Orders.Order Amount}) from the group ahead of it into the main report. How do I get it to say 0.00 if the field doesn't contain a value? (Any if/then statements I've tried aren't working.) How would I get it to stop showing the sum from the previous group that contains a value? I have version 10.