Error calculating percentage
Hi,
My report is defined like that :
City Employee per city Percentage
Montreal 1203 50%
...
I have a dbcalc set to LookupAHead=True that count the total of employee.
My report is set with Two passes.
I have a variable with an OnCalc event :
Value := Employee per city / dbCalc.Value
My percentage return wrong value
Am I doing something wrong
Thanks
Francis
My report is defined like that :
City Employee per city Percentage
Montreal 1203 50%
...
I have a dbcalc set to LookupAHead=True that count the total of employee.
My report is set with Two passes.
I have a variable with an OnCalc event :
Value := Employee per city / dbCalc.Value
My percentage return wrong value
Am I doing something wrong
Thanks
Francis
This discussion has been closed.
Comments
You can download an example from:
http://www.digital-metaphors.com/tips/UseLookAheadValuesInCalcProj.dpr
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Sorry, here is the correct URL...
http://www.digital-metaphors.com/tips/CalcUsingLookAheadValuesRAP.zip
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com