G
Guest
I have a form frmVendors with a subform frmPayments. The main form shows
information on vendors, and the subform is a continuous form which lists the
checks paid out to each vendor. Users are typically entering new payments
into the subform on the main form.
The forms are linked to tables: Linked by VendorID (one to many)
tblVendor: Key=VendorID, Vendor Name, Vendor Address, Vendor State, Vendor
City
tblPayments: Key=CheckID, VendorID, PaymentAmount
There is a field in tblVendor called NumberChecks to show the total amount
of checks paid out to that vendor. There is a text box on the main form to
show NumberChecks. Right now, the user must increment NumberChecks manually
when they add a new payment amount.
I need a way to count the number of checks for each VendorID in tblPayments,
and store it in tblVendors in the NumberChecks field. I also want the
NumberChecks field on frmVendors to update when a new payment is added or if
a payment is deleted.
Any Ideas?
information on vendors, and the subform is a continuous form which lists the
checks paid out to each vendor. Users are typically entering new payments
into the subform on the main form.
The forms are linked to tables: Linked by VendorID (one to many)
tblVendor: Key=VendorID, Vendor Name, Vendor Address, Vendor State, Vendor
City
tblPayments: Key=CheckID, VendorID, PaymentAmount
There is a field in tblVendor called NumberChecks to show the total amount
of checks paid out to that vendor. There is a text box on the main form to
show NumberChecks. Right now, the user must increment NumberChecks manually
when they add a new payment amount.
I need a way to count the number of checks for each VendorID in tblPayments,
and store it in tblVendors in the NumberChecks field. I also want the
NumberChecks field on frmVendors to update when a new payment is added or if
a payment is deleted.
Any Ideas?