Hello;
Thanks for your help.
To make it simple, I tried to create a shared variable for passing data from subreport to main report
Since I am not allowed to sum (formula), e,g, sum(
{@mainformula), I
calcualte the grand total from subreport. detailed steps are:
1. In subreport, create formula called subformula, the shared valiable = grand total
WhilePrintingRecords;
Shared CurrencyVar myTotal :=Sum ({Command.SUM(AB.FEEAMOUNT)})
2. In main report, created a formula called mainformula
WhilePrintingRecords;
Shared CurrencyVar myTotal;
myTotal
3. I put this mainformula on the main report underneath of subreport. I got the total fee from last row , not grand total fee.
What went wrong? Please help.
Jean