Hello
I have a database that is comprised of raw material and finished material. I have a table that contains the information regarding the raw material, (raw material ID, supply, manufacturer, cost etc). I have multiple tables that contains the information of raw material that was used in the finished material (finished ID, raw material ID, amount used, etc). Multiple raw materials are used in the finished material. Ultimately I would like to create a report that gathers all of the raw materials that were used to make a finished material. I have created a query for each raw material that is used to come up with the price for each product. Cost of raw material multiplied by the volume used but this will give me the total for each type of material used and not an overall cost. How do I come up with the overall cost to product finished material (say like finished product Y in the example)? I have tried creating a basic query of one raw material to the finished product but I get the same value repeated over multiple rows in the query table. Please any help would be greatly appreciated.
Example
Raw Material A table
Raw Material ID Supply Manufacturer Cost
1 Shampoo Acme 1.00
2 Lotion SomeManufacturer 2.00
Raw Material A Data table
Raw Material ID Finished Product Volume
1 X 10
1 Y 20
Raw Material B table
Raw Material ID Supply Manufacturer Cost
B Bottles Waterford 3.00
C Bottles Waterford 3.50
Raw Material B Data table
Raw Material ID Finished Product Volume Used
B X 10
B Y 10
C Y 20
Finished Product table
Finished Product ID Product
X Shampoo in bottles
Y Lotion in bottles
Thanks,
SB