I have this querty below that works, but it needs to do the SumOfQuantity based on a Part Number vs showing the SumOfQuantity of each StockRoom Code for each Part Number.
SELECT MRPParts.Priority, PartMaster.PartNumber, MRPParts.ISC, MRPParts.OMC, Employees.EmployeeID, Employees.LastName, PartMaster.DescText, PartMaster.DepartmentCode, PartMaster.StockroomCode, InventoryLots.LocationCode, PartMaster.CommodityCode, PartXReference.SupplierID, InventoryLots.Quantity, Sum(InventoryLots.Quantity) AS SumOfQuantity, PartXReference.ApprovedSource
FROM ((MRPParts INNER JOIN (PartMaster LEFT JOIN (CommodityCodes LEFT JOIN Employees ON CommodityCodes.EmployeeID = Employees.EmployeeID) ON PartMaster.CommodityCode = CommodityCodes.CommodityCode) ON MRPParts.PartNumber = PartMaster.PartNumber) LEFT JOIN InventoryLots ON PartMaster.PartNumber = InventoryLots.PartNumber) LEFT JOIN PartXReference ON PartMaster.PartNumber = PartXReference.PartNumber
GROUP BY MRPParts.Priority, PartMaster.PartNumber, MRPParts.ISC, MRPParts.OMC, Employees.EmployeeID, Employees.LastName, PartMaster.DescText, PartMaster.DepartmentCode, PartMaster.StockroomCode, InventoryLots.LocationCode, PartMaster.CommodityCode, PartXReference.SupplierID, InventoryLots.Quantity, MRPParts.MRPParts_PKey, PartXReference.ApprovedSource
HAVING (((MRPParts.Priority)<=5) AND ((PartXReference.ApprovedSource)=-1))
ORDER BY MRPParts.Priority, PartMaster.PartNumber, MRPParts.MRPParts_PKey;
SELECT MRPParts.Priority, PartMaster.PartNumber, MRPParts.ISC, MRPParts.OMC, Employees.EmployeeID, Employees.LastName, PartMaster.DescText, PartMaster.DepartmentCode, PartMaster.StockroomCode, InventoryLots.LocationCode, PartMaster.CommodityCode, PartXReference.SupplierID, InventoryLots.Quantity, Sum(InventoryLots.Quantity) AS SumOfQuantity, PartXReference.ApprovedSource
FROM ((MRPParts INNER JOIN (PartMaster LEFT JOIN (CommodityCodes LEFT JOIN Employees ON CommodityCodes.EmployeeID = Employees.EmployeeID) ON PartMaster.CommodityCode = CommodityCodes.CommodityCode) ON MRPParts.PartNumber = PartMaster.PartNumber) LEFT JOIN InventoryLots ON PartMaster.PartNumber = InventoryLots.PartNumber) LEFT JOIN PartXReference ON PartMaster.PartNumber = PartXReference.PartNumber
GROUP BY MRPParts.Priority, PartMaster.PartNumber, MRPParts.ISC, MRPParts.OMC, Employees.EmployeeID, Employees.LastName, PartMaster.DescText, PartMaster.DepartmentCode, PartMaster.StockroomCode, InventoryLots.LocationCode, PartMaster.CommodityCode, PartXReference.SupplierID, InventoryLots.Quantity, MRPParts.MRPParts_PKey, PartXReference.ApprovedSource
HAVING (((MRPParts.Priority)<=5) AND ((PartXReference.ApprovedSource)=-1))
ORDER BY MRPParts.Priority, PartMaster.PartNumber, MRPParts.MRPParts_PKey;