SELECT DISTINCTROW TBLusers.[User ID], TBLusers.User,
Sum(TBL_DATA.[Copy + Print_Total_Full Color]+TBL_DATA.[Copy + Print_Total_Two-color]) AS Color,
Sum(TBL_DATA.[Copy + Print_Total_Black]) AS BW,
Sum(TBL_DATA.[Copy + Print_Total_Total] ) AS Ttotal
FROM TBLusers INNER JOIN TBL_DATA ON TBLusers.[User ID] = TBL_DATA.[Account name]
GROUP BY TBLusers.[User ID], TBLusers.User, TBL_DATA.Device
HAVING (((TBL_DATA.Device)='230'))
ORDER BY TBLusers.[User ID];
|