M
miss031
I'm not sure if this has been covered here. I have a form that adds
individual purchases to a customer's account, updating a table that records
the item urchased, the price and the quantity. I am trying to set up
invocies and payments. I have a tranactions table which appends a record for
the amount of the invoice, and also appends a record for the amount of the
payment. THe problem I have is updating the amount of the invoice for each
purchase added to it. I know that you aren't suposed to store calulated
values, but I can't find a normalized route that does not consume to many
resources by running select queries with numerous tables.
If this is my path, I would like to write and update query that would update
the invoice amount in the invoices table with the total purchase amount
(includng surcharges and taxes, all derived from an invoice query) each a
purchase is added to the invoice.How do I find the sum of the purchases for
that invoice, and then add the new amount to that total, and store it in the
tranactions table?
individual purchases to a customer's account, updating a table that records
the item urchased, the price and the quantity. I am trying to set up
invocies and payments. I have a tranactions table which appends a record for
the amount of the invoice, and also appends a record for the amount of the
payment. THe problem I have is updating the amount of the invoice for each
purchase added to it. I know that you aren't suposed to store calulated
values, but I can't find a normalized route that does not consume to many
resources by running select queries with numerous tables.
If this is my path, I would like to write and update query that would update
the invoice amount in the invoices table with the total purchase amount
(includng surcharges and taxes, all derived from an invoice query) each a
purchase is added to the invoice.How do I find the sum of the purchases for
that invoice, and then add the new amount to that total, and store it in the
tranactions table?