I have four tables, with the following relevant fields.
tblCustomer
AlphaID
tblJob
JobNumber
tblOrder
QuantityReceived
QuantityShipped
QuantityScrapped
Quantity
tblReceive
ReceiveDate
I would like to create a report that includes the most recent date parts were received (ReceiveDate), the total number of parts received, shipped, and scrapped for this order (QuantityReceived, QuantityShipped, and QuantityScrapped), and the total number of parts for this order (Quantity). This reports should be grouped by the AlphaID and JobNumber fields.
The problem is that I only want each job number to show up once, and since there can be several orders with the same job number, I use the sum function to add all the quantities together. However, when there are multiple entries in tblReceive for an order, my quantity sums are always too large.
I'm not quite sure how to proceed here, any help would be appreciated.
tblCustomer
AlphaID
tblJob
JobNumber
tblOrder
QuantityReceived
QuantityShipped
QuantityScrapped
Quantity
tblReceive
ReceiveDate
I would like to create a report that includes the most recent date parts were received (ReceiveDate), the total number of parts received, shipped, and scrapped for this order (QuantityReceived, QuantityShipped, and QuantityScrapped), and the total number of parts for this order (Quantity). This reports should be grouped by the AlphaID and JobNumber fields.
The problem is that I only want each job number to show up once, and since there can be several orders with the same job number, I use the sum function to add all the quantities together. However, when there are multiple entries in tblReceive for an order, my quantity sums are always too large.
I'm not quite sure how to proceed here, any help would be appreciated.