E
Eric
Hi all,
I have my query set up, but I want it to sort by month and
display as January 2004, Feburary 2004, March 2004, etc.
Is there a way to do this? I apologize for the short
questuon. My query is below.
SELECT DISTINCTROW qryEric.Name, qryEric.ProductCode,
Format$([qryEric].[TestDate],"mmmm yyyy") AS [TestDate By
Month], Avg(qryEric.Weight) AS [Avg Weight]
FROM qryEric
GROUP BY qryEric.Name, qryEric.ProductCode,
Format$([qryEric].[TestDate],"mmmm yyyy"), Year([qryEric].
[TestDate])*12+DatePart("m",[qryEric].[TestDate])-1
ORDER BY Format$([qryEric].[TestDate],"mmmm yyyy"), Year
([qryEric].[TestDate])*12+DatePart("m",[qryEric].
[TestDate])-1;
I have my query set up, but I want it to sort by month and
display as January 2004, Feburary 2004, March 2004, etc.
Is there a way to do this? I apologize for the short
questuon. My query is below.
SELECT DISTINCTROW qryEric.Name, qryEric.ProductCode,
Format$([qryEric].[TestDate],"mmmm yyyy") AS [TestDate By
Month], Avg(qryEric.Weight) AS [Avg Weight]
FROM qryEric
GROUP BY qryEric.Name, qryEric.ProductCode,
Format$([qryEric].[TestDate],"mmmm yyyy"), Year([qryEric].
[TestDate])*12+DatePart("m",[qryEric].[TestDate])-1
ORDER BY Format$([qryEric].[TestDate],"mmmm yyyy"), Year
([qryEric].[TestDate])*12+DatePart("m",[qryEric].
[TestDate])-1;