How to SUM both the main and subreports ?

J

John

Hello,

I want to sum up two fields of a report : one from the main report while the
other from the subreport.

That is the formulae of the "Total" field : =Sum([tx_amt]+[daily_salary
subreport].Report!daily_bonus)

I don't understand why Sum([tx_amt] is 19600 and [daily_salary
subreport].Report!daily_bonus) is 5000, so the "Total" should be : 24600,
but the displayed value was : 19604 because there were 4 records in the main
report.
 
Top