G
Guest
I need 2 columns in my query, 1) to sum records where Location 1 RorM = "R"
and 2) to sum records where Location 1 RorM = "M". I'm not having any luck
adding both columns using the query below. Any help is much appreciated.
Thank you.
SELECT [Part Number Info].Model, Sum([UT Data].[Location 1]) AS L1R, Sum([UT
Data].[Location 1]) AS L1M
FROM [UT Data] RIGHT JOIN [Part Number Info] ON [UT Data].[Part Number] =
[Part Number Info].[Part Number]
WHERE ((([UT Data].[Location 1 RorM])="R") AND (([UT Data].[Location 1
RorM])="M"))
GROUP BY [Part Number Info].Model;
and 2) to sum records where Location 1 RorM = "M". I'm not having any luck
adding both columns using the query below. Any help is much appreciated.
Thank you.
SELECT [Part Number Info].Model, Sum([UT Data].[Location 1]) AS L1R, Sum([UT
Data].[Location 1]) AS L1M
FROM [UT Data] RIGHT JOIN [Part Number Info] ON [UT Data].[Part Number] =
[Part Number Info].[Part Number]
WHERE ((([UT Data].[Location 1 RorM])="R") AND (([UT Data].[Location 1
RorM])="M"))
GROUP BY [Part Number Info].Model;