Sum Calc
Easy one i hope,
I have used a DBcalc field on a report to sum total the number of units
which works fine, i now need to do the same thing the DB calc 'Sum' does but
in the code part and cannot work out the correct syntax, the field looks
something like this:
else value := Sealed_Units ['Qty'];
Could you please tell me how to write this line so it actually does a SUM
total of the Sealed_Units ['Qty']; filed.
Thank You
I have used a DBcalc field on a report to sum total the number of units
which works fine, i now need to do the same thing the DB calc 'Sum' does but
in the code part and cannot work out the correct syntax, the field looks
something like this:
else value := Sealed_Units ['Qty'];
Could you please tell me how to write this line so it actually does a SUM
total of the Sealed_Units ['Qty']; filed.
Thank You
This discussion has been closed.
Comments
In code you will need to use a TppVariable and its OnCalc event to make the
calculation. Something like the following...
Variable1OnCalc
begin
Value := Value + Report.DataPipeline['Qty'];
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com