F
Flopbot
I know I’m missing something simple, but I haven’t been able to track it down
through the other posts. I have a query that returns the number of hours
worked each month.
I have:
Admissions 400
Education 200
I want:
Admissions 400
Education 200
Office 0
Exhibits 0
How do I use the Nz() function to make the office and exhibits departments
show zero. The SQL is below. Thank you for any help!
SELECT DateSerial(Year([Date Worked]),Month([Date Worked]),1) AS [Month],
(Sum((DateDiff("n",[Start Time],[End Time])/60)*[Number of People])) AS
Total, [Volunteer Hours Tracking Table].Department
FROM [Volunteer Hours Tracking Table]
GROUP BY DateSerial(Year([Date Worked]),Month([Date Worked]),1), [Volunteer
Hours Tracking Table].Department
ORDER BY DateSerial(Year([Date Worked]),Month([Date Worked]),1) DESC;
through the other posts. I have a query that returns the number of hours
worked each month.
I have:
Admissions 400
Education 200
I want:
Admissions 400
Education 200
Office 0
Exhibits 0
How do I use the Nz() function to make the office and exhibits departments
show zero. The SQL is below. Thank you for any help!
SELECT DateSerial(Year([Date Worked]),Month([Date Worked]),1) AS [Month],
(Sum((DateDiff("n",[Start Time],[End Time])/60)*[Number of People])) AS
Total, [Volunteer Hours Tracking Table].Department
FROM [Volunteer Hours Tracking Table]
GROUP BY DateSerial(Year([Date Worked]),Month([Date Worked]),1), [Volunteer
Hours Tracking Table].Department
ORDER BY DateSerial(Year([Date Worked]),Month([Date Worked]),1) DESC;