>You can use the same technique in Visual FoxPro. Basically, you can put your calculation code in a method and call that method as indicated in my first reply. The running balance var will now become a property of the form and the code in the method you will create will get the value from that property and increment the current line value.
I must really be missing something then because that is what I am doing.
I set the control source for the grid column to my method thisform.calc_bal()
thisform.calc_bal code (maybe this is the part where I am messing up)
-----------------------------------
thisform.n_run_bal = thisform.n_run_bal + history.amount
return thisform.n_run_bal
I created a property for the form to hold the running balance: thisform.n_run_bal