Hello All,
In the main form I've got the actual amount for example 1000 and
I have a sub form in data sheet view which has two columns
ROW Amount Recieved Outstanding Amount
1 100 900
2 200 700
3 300 400
I want this Outstanding Amount to be calculated depending on the Amount_Recieved, I can do this using Recordset but I want this to be updated automatically evertime a particular record has been amended or changed. For example if I change the Amount_Recieved in the first row to 150 the subsequent Outstanding_Amount should update for all the rows.
I've got a logic where I can store the Actual_Amount from the main form into a variable and substract the Sum of all Amount_Recieved until the current row to get the consequent Outstanding_Amount.
EX: if I had to calculate the Outstanding_Amount of Row 1 then my formula would be Actual_Amount - Sum of all the Amount_Recieved upto Row 1.
for Row 3 it would be Actual_Amount - Sum of all the Amount_Recieved upto Row 3. which would be 1000-(100+200+300) = 400.
But i need help to implement this.
Thanking you in Anticipation.
In the main form I've got the actual amount for example 1000 and
I have a sub form in data sheet view which has two columns
ROW Amount Recieved Outstanding Amount
1 100 900
2 200 700
3 300 400
I want this Outstanding Amount to be calculated depending on the Amount_Recieved, I can do this using Recordset but I want this to be updated automatically evertime a particular record has been amended or changed. For example if I change the Amount_Recieved in the first row to 150 the subsequent Outstanding_Amount should update for all the rows.
I've got a logic where I can store the Actual_Amount from the main form into a variable and substract the Sum of all Amount_Recieved until the current row to get the consequent Outstanding_Amount.
EX: if I had to calculate the Outstanding_Amount of Row 1 then my formula would be Actual_Amount - Sum of all the Amount_Recieved upto Row 1.
for Row 3 it would be Actual_Amount - Sum of all the Amount_Recieved upto Row 3. which would be 1000-(100+200+300) = 400.
But i need help to implement this.
Thanking you in Anticipation.