L
Litedread
Hi All,
I have created a query where I can get a count of a specific person's
activity. These people log when they recieve mail and when they have actioned
it. The problem that I have is these stats are gathered for the previous
month i.e. in January we are looking at Decembers data. I can get the query
to get the data from February to December but come January I cant go back to
December.
Here is the SQL code:
SELECT Count([Experience Rating Table].DateCompleted) AS CountOfDateCompleted
FROM [MyTable]
GROUP BY [MyTable].AssignedTo, Month([DateCompleted]), Year([DateCompleted])
HAVING ((([MyTable].AssignedTo)="PersonsName") AND
((Month([DateCompleted]))=Month(Now())-1) AND
((Year([DateCompleted]))=Year(Now())))
Any help would be greatly appriciated.
I have created a query where I can get a count of a specific person's
activity. These people log when they recieve mail and when they have actioned
it. The problem that I have is these stats are gathered for the previous
month i.e. in January we are looking at Decembers data. I can get the query
to get the data from February to December but come January I cant go back to
December.
Here is the SQL code:
SELECT Count([Experience Rating Table].DateCompleted) AS CountOfDateCompleted
FROM [MyTable]
GROUP BY [MyTable].AssignedTo, Month([DateCompleted]), Year([DateCompleted])
HAVING ((([MyTable].AssignedTo)="PersonsName") AND
((Month([DateCompleted]))=Month(Now())-1) AND
((Year([DateCompleted]))=Year(Now())))
Any help would be greatly appriciated.