TRANSFORM Sum(tblCombination.Lbs) AS SumOfSumOfLbs
SELECT qryPartThreePivot.CustomerName
FROM qryPartThreePivot LEFT JOIN tblCombination ON (qryPartThreePivot.CustomerName = tblCombination.CustomerName) AND (qryPartThreePivot.MaxOfReportDate = tblCombination.ReportDate)
GROUP BY qryPartThreePivot.CustomerName
ORDER BY qryPartThreePivot.CustomerName, qryPartThreePivot.Sort
PIVOT qryPartThreePivot.Sort
WITH OWNERACCESS OPTION;
|