A
Amit
Hi,
I'm having a tough time trying to figure out how to
calculate a running total on my form.
I have a form Invoice (frmInvoice, InvoiceID = PK), and
each form has one or more items. There is a subform
Invoice Items (sfrmInvoiceItem, InvoiceItemID = PK,
InvoiceID = FK) to enter the hours and payrate. I'm able
to calculate the total amount for each item on the
subform, but am totally at sea when trying to calculate
the running total for a particular invoice, which would
involve SUM(hrs_worked*payrate) for all items for that
invoice.
Any help will be much appreciated.
Thanks!
-Amit
I'm having a tough time trying to figure out how to
calculate a running total on my form.
I have a form Invoice (frmInvoice, InvoiceID = PK), and
each form has one or more items. There is a subform
Invoice Items (sfrmInvoiceItem, InvoiceItemID = PK,
InvoiceID = FK) to enter the hours and payrate. I'm able
to calculate the total amount for each item on the
subform, but am totally at sea when trying to calculate
the running total for a particular invoice, which would
involve SUM(hrs_worked*payrate) for all items for that
invoice.
Any help will be much appreciated.
Thanks!
-Amit