G
Guest
I have an Access db that keeps track of employees and dates that tasks are
assigned to them, along with their completion date.
I have a query that counts the number of employees that completed tasks
assigned for the month and displays the total amount of employees for that
month. The query does this fine, but it's not exactly what I'm looking for.
I want it to count the number of different employees for that month that
completed tasks and not the number of employees for all the tasks.
I'm not sure if I'm explaing this correctly so here's an example:
SELECT DISTINCT Count(Fairness.AssOff) AS [# of Assigned Officers]
FROM Fairness
HAVING (((Year([AssDate]))=Year(Now())) AND
((Month([AssDate]))=Month(Now())));
Please help I have read Access help through and through and could not find
any answers, I have scoured forums and read tons of messages bu haven't been
able to fix this problem.
Thanks
John - completed this task
Henry - "
John - "
Alice - "
Alice - "
John - "
I want the query to count how many different employees completed tasks. In
this case 3 employees not 6 employees that the query is counting.
Here is a copy of the SQL statement:
assigned to them, along with their completion date.
I have a query that counts the number of employees that completed tasks
assigned for the month and displays the total amount of employees for that
month. The query does this fine, but it's not exactly what I'm looking for.
I want it to count the number of different employees for that month that
completed tasks and not the number of employees for all the tasks.
I'm not sure if I'm explaing this correctly so here's an example:
SELECT DISTINCT Count(Fairness.AssOff) AS [# of Assigned Officers]
FROM Fairness
HAVING (((Year([AssDate]))=Year(Now())) AND
((Month([AssDate]))=Month(Now())));
Please help I have read Access help through and through and could not find
any answers, I have scoured forums and read tons of messages bu haven't been
able to fix this problem.
Thanks
John - completed this task
Henry - "
John - "
Alice - "
Alice - "
John - "
I want the query to count how many different employees completed tasks. In
this case 3 employees not 6 employees that the query is counting.
Here is a copy of the SQL statement: