H
Hyder
Hi, I'm using access 2003 or 2007 and have some programming background but a
minimum knowledge about SQL, anyhow i'm making a database for my a small
company where the Invoice table has a one-tp-many relation with InvoiceLine
table. InvoiceLine represents individual items, quantity, price etc on the
Invoice.
now I've writen a an Update Query that base on the Quantity * Price works
out the SubTotal for every InvoiceLine but then I have problem with writing
the correct query on how to Sum UP all the SubTotals with the similar
InvoiceNumber and Placing this in the Total cell of Invoice Table.
I use DSum([InvoiceLine]![SubTotal],InvoiceLine])
and Sum([InvoiceLine]) but all return empty sets,
All have currency Type and by default set to Null
looking forward to your reply.
Thanks : Hyder
minimum knowledge about SQL, anyhow i'm making a database for my a small
company where the Invoice table has a one-tp-many relation with InvoiceLine
table. InvoiceLine represents individual items, quantity, price etc on the
Invoice.
now I've writen a an Update Query that base on the Quantity * Price works
out the SubTotal for every InvoiceLine but then I have problem with writing
the correct query on how to Sum UP all the SubTotals with the similar
InvoiceNumber and Placing this in the Total cell of Invoice Table.
I use DSum([InvoiceLine]![SubTotal],InvoiceLine])
and Sum([InvoiceLine]) but all return empty sets,
All have currency Type and by default set to Null
looking forward to your reply.
Thanks : Hyder