J
Jeff Garrison
All -
I've been racking my brain with no avail on something that should be an easy
task...
I have two temporary tables that I'm using to come up with a single set of
variables. The first one (tmptblItemsOKToBill) is the result of a query.
The second (tmptblInvoiceTable) is a table that summarizes the data from the
first as well as pull some data from another table. The problem I'm having
is that there are multiple items in the first table that need to be
calculated and placed in the second table.
First Table (tmptblItemsOKToBill)
Project ActualUnits ActualUnitCost
7398 3.0 25.00
7398 1.0 49.00
8491 1.0 375.00
What I need is to update is...
Second Table (tmptblInvoiceTable)
Project Amount
7398 124.00
8491 375.00
The only thing I could find is to use DSum, but I've tried every variation
and the closest it comes is...
Project Amount
7398 499.00
8491 499.00
Any help would be greatly appreciated.
Thanks.
Jeff G
I've been racking my brain with no avail on something that should be an easy
task...
I have two temporary tables that I'm using to come up with a single set of
variables. The first one (tmptblItemsOKToBill) is the result of a query.
The second (tmptblInvoiceTable) is a table that summarizes the data from the
first as well as pull some data from another table. The problem I'm having
is that there are multiple items in the first table that need to be
calculated and placed in the second table.
First Table (tmptblItemsOKToBill)
Project ActualUnits ActualUnitCost
7398 3.0 25.00
7398 1.0 49.00
8491 1.0 375.00
What I need is to update is...
Second Table (tmptblInvoiceTable)
Project Amount
7398 124.00
8491 375.00
The only thing I could find is to use DSum, but I've tried every variation
and the closest it comes is...
Project Amount
7398 499.00
8491 499.00
Any help would be greatly appreciated.
Thanks.
Jeff G