How To…Use a Look Ahead Value in a Calculation


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


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.


Sample Delphi code: