I am trying to create a query to count the records between for the past 3 months. This is what I have so far:
"SELECT Format(TBDate,'mmmm') as Month, COUNT (TBDate) as cnt INTO ChartTable FROM Turnbacks WHERE TBDate BETWEEN DateAdd(""m"", -3, Date()) AND Date();"
I am gettting:
Syntax error (missing operator) in query expression 'TBDate BETWEEN DateAdd(""mmmm"", -3, Date()) AND Date()'.
I am just not sure what I am missing. This is the first time I have tried building an SQL statement this "complex".