C
Carrie_Loos via AccessMonster.com
I have the following query:
SELECT MROs.[Core Part Nbr], Format([Date Open],"mmm-yy") AS [Month], Sum
(MROs.[Ord Qty]) AS Forecast1
FROM MROs
WHERE (((MROs.[Date Open]) Between DateAdd("m",-12,Date()) And DateAdd("m",0,
Date())))
GROUP BY MROs.[Core Part Nbr], Format([Date Open],"mmm-yy");
But what I need to do is create a forecast for several months where the
DateAdd will numbered months will change. Also, I was hoping to do an average
of the from the months included. Something like.....{i.e. Count(Between
DateAdd("m",-12,Date()) And DateAdd("m",0,Date()))))} then use that as a
divisor? How do you do that?
SELECT MROs.[Core Part Nbr], Format([Date Open],"mmm-yy") AS [Month], Sum
(MROs.[Ord Qty]) AS Forecast1
FROM MROs
WHERE (((MROs.[Date Open]) Between DateAdd("m",-12,Date()) And DateAdd("m",0,
Date())))
GROUP BY MROs.[Core Part Nbr], Format([Date Open],"mmm-yy");
But what I need to do is create a forecast for several months where the
DateAdd will numbered months will change. Also, I was hoping to do an average
of the from the months included. Something like.....{i.e. Count(Between
DateAdd("m",-12,Date()) And DateAdd("m",0,Date()))))} then use that as a
divisor? How do you do that?