danikuper
Registered User.
- Local time
- Today, 05:18
- Joined
- Feb 6, 2003
- Messages
- 147
I have a main form with two subforms:
- Tracking
- Payments
The main form contains customer info (ID, Name, address) while the payments subform is a datasheet with fields "payment_amount" and "payment_date"; the tracking subform has "total_due" and "total_paid".
I want to calculate the "total_paid" based on the payments that come in. Each new record in the Payments subform would update the "total_paid" field for that customer.
My initial idea was to have something on the "after update" event of the Payments subform that would go over each record, add the payments and update the "total_paid" field on the other subform with that value.
Is this possible? How do I do that? Other ideas are very welcome!!!
Thanks!
P.S. using Access 2000
- Tracking
- Payments
The main form contains customer info (ID, Name, address) while the payments subform is a datasheet with fields "payment_amount" and "payment_date"; the tracking subform has "total_due" and "total_paid".
I want to calculate the "total_paid" based on the payments that come in. Each new record in the Payments subform would update the "total_paid" field for that customer.
My initial idea was to have something on the "after update" event of the Payments subform that would go over each record, add the payments and update the "total_paid" field on the other subform with that value.
Is this possible? How do I do that? Other ideas are very welcome!!!
Thanks!
P.S. using Access 2000