I'm trying to create a query in sql that will count the number of terminations (job end dates) in each month of a fiscal year starting in September. Here's what I have so far which isn't working. (I abbreviated so you wouldn't see all 12 months)
SELECT [Job Activity].[Position Number], [Job Activity].[End Date], Count([Job Activity].ID) AS month1, Count([Job Activity].ID) AS month2
FROM [Job Activity]
GROUP BY [Job Activity].[Position Number], [Job Activity].[End Date]
HAVING ((([Job Activity]![End Date])>=[txtStart] And
([Job Activity]![End Date])<DateAdd("m",1,[txtStart])
And ([Job Activity]![End Date])<DateAdd("m",2,[txtStart]) And
and so on. Any suggestions?
SELECT [Job Activity].[Position Number], [Job Activity].[End Date], Count([Job Activity].ID) AS month1, Count([Job Activity].ID) AS month2
FROM [Job Activity]
GROUP BY [Job Activity].[Position Number], [Job Activity].[End Date]
HAVING ((([Job Activity]![End Date])>=[txtStart] And
([Job Activity]![End Date])<DateAdd("m",1,[txtStart])
And ([Job Activity]![End Date])<DateAdd("m",2,[txtStart]) And
and so on. Any suggestions?