prettitoni
Programmer
I have a report set up like this and I need to write a function that calculates a running total to get the Net values (from a starting value which is supplied).
Say the starting value is 20, the results should go:
Can someone please help me write this function in CR8?
I kind of started with this. I know I have to loop through the records somehow and I don't know how to do it in CR.
HoldVal := StartingValue;
HoldVal := HoldVal + (Sub - Add)
Say the starting value is 20, the results should go:
Code:
Field1 Field2 Add Sub Net
-------------------------------------
12 A+ 10 30
13 A 5 25
11 C 12 37
01 D 10 27
12 B 11 38
Can someone please help me write this function in CR8?
I kind of started with this. I know I have to loop through the records somehow and I don't know how to do it in CR.
HoldVal := StartingValue;
HoldVal := HoldVal + (Sub - Add)