D
Deb
In my inventory table, I have multiple records with the same part number and
sometimes the same part with have a different cost. I need to sum all of the
records for each part number and unit cost. I thought the code below would
work, but it isn't doing the job.
SELECT DISTINCTROW sqry_ViewInventory.PartNo, sqry_ViewInventory.UnitCost,
Sum(sqry_ViewInventory.[Quantity On Hand]) AS [Sum Of Quantity On Hand]
FROM tbl_InventoryListing
GROUP BY sqry_ViewInventory.PartNo, sqry_ViewInventory.UnitCost;
Thanks in advance!
sometimes the same part with have a different cost. I need to sum all of the
records for each part number and unit cost. I thought the code below would
work, but it isn't doing the job.
SELECT DISTINCTROW sqry_ViewInventory.PartNo, sqry_ViewInventory.UnitCost,
Sum(sqry_ViewInventory.[Quantity On Hand]) AS [Sum Of Quantity On Hand]
FROM tbl_InventoryListing
GROUP BY sqry_ViewInventory.PartNo, sqry_ViewInventory.UnitCost;
Thanks in advance!