You need 2 or 3 formula fields
Formula1 (this is the formula name)
Where You assign the initial Balance value
Could be a Field or a Parameter or a Constant
(you didn't say from where you take it)
Place it in the RH or GH section
Code:
WhilePrintingRecords;
numberVar Balance:=100;
Formula2
Where You calculate the Balance
Place it in the Detail Section (this is your balance column)
Code:
WhilePrintingRecords;
numberVar Balance;
Balance:=Balance + {Table.Received} - {Table.Issued};
Balance;
Just change the table and fields names for real ones
If You need to reset to zero the Balance, let's say at GF section, then you'll need the
Formula3
Where You reset to zero
Place it at GF section
Code:
WhilePrintingRecords;
numberVar Balance:=0;
JG
Bookmarks