I am trying to create a query to group on the data by month for the previous year. I have the query grouping by month, but can't get it to stop at the data prior to one year earlier. Here is an example of my query:
SELECT (Format([shDate],"mmm yyyy"
) AS [Month], (equation as [Results])
FROM [TableName]
GROUP BY (Format([shDate],"mmm yyyy"
)
HAVING ((((Format([shDate],"mmm yyyy"
))>format(DateAdd("y",-1,Now()),"mmm yyy"
))
This retrieves every month in the database. Suggestions?
Thanks
baugie
SELECT (Format([shDate],"mmm yyyy"

FROM [TableName]
GROUP BY (Format([shDate],"mmm yyyy"

HAVING ((((Format([shDate],"mmm yyyy"


This retrieves every month in the database. Suggestions?
Thanks
baugie