I have a form (Client) that has SalesPrice and BalancePaid, then calculated BalanceDue (SalesPrice-BalancePaid).
I need the BalanceDue to be in the table Client.
I gather you've got the forms record source looking at a query with 'BalanceDue: [SalesPrice]-[BalancePaid]' in.
You could set up an UPDATE query (called UpdateQuery) based on the client Table with the Balance Due 'Update To' field set at [SalesPrice]-[BalancePaid]
After the form has been updated with new figures, you could put into the forms 'on close' event :-
Private Sub Form_Close()
DoCmd.OpenQuery "updateQuery"
End Sub
You can either have this flag up a mssg to OK the updates OR turn the mssgs OFF so it does it automatically :-
Go into TOOLS/OPTIONS/editfind tab & untick 'Action Queries'
*Note* If you have any other 'Update Queries' then this will turn off the mssgs confirming those as well.
Not sure if there's an easier solution but this will do it !
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.