I have the following query I would like to add a calculated field that takes the SumOfQtyRejected number and divide it by the total of all the rejects tallied in this query. Hopefully that's not too vague
SELECT [tblParts].[PartNum] & " - " & [DefectDescription] AS Issue, qzTotInsp.SumOfQtyInspected, Sum(tblRejects.QtyRejected) AS SumOfQtyRejected, [SumOfQtyRejected]/[SumOfQtyInspected]*1000000 AS PPM
FROM ((tblParts INNER JOIN qzTotInsp ON tblParts.PartID = qzTotInsp.PartID) INNER JOIN tblSortData ON tblParts.PartID = tblSortData.PartsID) INNER JOIN (tblDefectCodes INNER JOIN tblRejects ON tblDefectCodes.DefectID = tblRejects.DefectCode) ON tblSortData.SortDataID = tblRejects.SortDataID
GROUP BY [tblParts].[PartNum] & " - " & [DefectDescription], qzTotInsp.SumOfQtyInspected
All help appreciated