I'm trying to use a similar structure to what OldBirdman suggested in my previous post, but I'm a bit stuck.
Here is what I've set up:
tbl_Orders
Order_Number
Order_Date
tbl_Units_Ordered
Order_Number
Unit_Number
Qty_of_Units
tbl_Inventory_Items_in_Unit
Unit_Number
Item_Number
Qty_Per_Unit
I have a query that uses tbl_Units_Ordered and tbl_Inventory_Items_in_Unit:
Unit_Number
Qty_of_Units
Item_Number
Qty_per_Unit
= [qty_of_units]*[qty_per_unit]
My problem now is that most of the poletop units are made up of some combination of the same parts. So, my query is getting a total of each item per unit number, but I ultimately need to sum the total number of each item across all unit numbers. For example, as you can see below, there is a part number 285-073-39292 in an A1 as well as in an A3.)
Expand|Select|Wrap|Line Numbers
- Unit_Number Qty_of_Units Item_Number Qty_per_Unit Total_Qty
- a1 1 285-073-39292 1 1
- a1 1 285-073-32359 1 1
- a1 1 285-073-32369 1 1
- a3 3 285-073-39292 1 3
- a3 3 285-073-32359 1 3
- a3 3 285-073-32369 1 3
- a3 3 285-073-43378 1 3
- a3 3 285-073-16377 1 3
- a3 3 285-073-32678 1 3
- a3 3 285-073-15659 1 3