Retrieve value from previous record

skwilliams

Registered User.
Local time
Today, 09:59
Joined
Jan 18, 2002
Messages
516
I have a form containing the fields: Date, TransactionNo, Charge, Payment, Balance and PrvBal. The primary key field "pkAuto" isn't on the table. The subform was created as tabular. I would like to calculate each new balance as Balance=PrvBal+Charge-Payment which would be setup like a statement with a running total balance.

I have entered the DLookup Function to be called in the Payment_Exit procedure. My problem here is the first record cannot retrieve the previous balance so it needs to calculate Balance=Charge-Payment.

Attached is the db file.

Any help is greatly appreciated.

Thanks.
 

Attachments

I didn't know if it would let me attach the file to an old post.
 
I had to delete the reports to reduce the file size
 
Last edited:

Users who are viewing this thread

Back
Top Bottom