How To…Use a Look Ahead Value in a Calculation

Question

“How do I make a calculation based on a total (such as a percentage) inside a report using a look ahead value?”

Solution

Retrieve the look ahead value using the DBCalc.GetLookAheadValue routine and convert it to a numerical type.  Then use this value in a new calculation elsewhere in the report.

Download: CalcUsingLookAheadValue.zip

CalcUsingLookAheadValuesRAP.zip

Sample Delphi code: