H
Hyder
I have the following two tables Invoice-InvoiceProduct and there's a many to
one relation between them, I use the following query to work out the total
base on all the InvoiceProducts that share the same InvoiceNumber but it
returns empty
anythoughts?
UPDATE Invoice
SET Invoice.Total = Sum(InvoiceProduct.SubTotal)
WHERE (((Invoice.InvoiceNumber)>0));
InvoiceProduct
=========
InvoiceNumber ItmeID Quantity Price SubTotal
10 1 2 $100 $200 <- this
update query works fine
11 2 5 $8 $40
11 5 4 $15 $60
-----------------------------------------------------------
Invoice
=====
InvoiceNumber Total
10 ?
11 ?
one relation between them, I use the following query to work out the total
base on all the InvoiceProducts that share the same InvoiceNumber but it
returns empty
anythoughts?
UPDATE Invoice
SET Invoice.Total = Sum(InvoiceProduct.SubTotal)
WHERE (((Invoice.InvoiceNumber)>0));
InvoiceProduct
=========
InvoiceNumber ItmeID Quantity Price SubTotal
10 1 2 $100 $200 <- this
update query works fine
11 2 5 $8 $40
11 5 4 $15 $60
-----------------------------------------------------------
Invoice
=====
InvoiceNumber Total
10 ?
11 ?