Rolling 12 month date query assistance

  • Thread starter Thread starter fishy
  • Start date Start date
F

fishy

I want to be able to run a query so that it shows the last 12 months data by
month.

Any ideas?
 
I want to be able to run a query so that it shows the last 12 months data by
month.

Any ideas?

Any help with your table structure?

BETWEEN DateAdd("m", -12, Date()) AND Date()

as a criterion on your date field will get the last twelve months data. You'll
need to use a calculated field such as

TheMonth: Format([datefield], "yyyy-mm")

to group by the month.
 
Back
Top