S
scadav
Hi,
I am trying to run a query in access and the users of the system would
really like to see a report with dates even though there are 0 values
for the dates. For example, we are calculating how many times an
incident occurred between certain dates. They would like the output to
look like this:
4/1/06 - 5
4/2/06 - 3
4/3/06 - 0
4/4/06 - 0
4/5/06 - 2
4/6/06 - 0
4/7/06 - 1
I have built the following query which works when there are results,
but it will not print out the "0" value days:
SELECT EmployeesActivity.ActivityDate, Count(*) AS CountNum,
EmployeesActivity.Activity
FROM EmployeesActivity
GROUP BY EmployeesActivity.ActivityDate, EmployeesActivity.Activity
HAVING (((EmployeesActivity.ActivityDate) Between #3/28/2006# And
#4/5/2006#))
ORDER BY EmployeesActivity.ActivityDate;
Anyone help me get dates in the range even though they have 0's? Any
help would be appreciated.
Thanks.
I am trying to run a query in access and the users of the system would
really like to see a report with dates even though there are 0 values
for the dates. For example, we are calculating how many times an
incident occurred between certain dates. They would like the output to
look like this:
4/1/06 - 5
4/2/06 - 3
4/3/06 - 0
4/4/06 - 0
4/5/06 - 2
4/6/06 - 0
4/7/06 - 1
I have built the following query which works when there are results,
but it will not print out the "0" value days:
SELECT EmployeesActivity.ActivityDate, Count(*) AS CountNum,
EmployeesActivity.Activity
FROM EmployeesActivity
GROUP BY EmployeesActivity.ActivityDate, EmployeesActivity.Activity
HAVING (((EmployeesActivity.ActivityDate) Between #3/28/2006# And
#4/5/2006#))
ORDER BY EmployeesActivity.ActivityDate;
Anyone help me get dates in the range even though they have 0's? Any
help would be appreciated.
Thanks.