The record source for the report points to my query.
The criteria looks like this for the date field:
Between [Forms]![Reports by Team dialog]![StartDate] And [Forms]![Reports by Team dialog]![EndDate]
and like this for the subDepartment:
In ([Forms]![Reports by Team dialog]![cboTeam])
--even though that says cboTeam it is a listbox.
Here it is in SQL as well:
SELECT [Project Status].Date, [Project Status].Name, [Project Status].SubDepartment, [Project Status].Location, [Project Status].ProjectNumber, [Project Status].SystemProjectJob, [Project Status].Goals, [Project Status].ProjectManager, [Project Status].UpdateDescription, [Project Status].SickHours, [Project Status].VacationHours, [Project Status].HolidayHours, [Project Status].ProjectHours, [Project Status].TechHours, [Project Status].AdminHours, [Project Status].AfterHoursMF, [Project Status].AfterHoursSat, [Project Status].AfterHoursSun, [Project Status].SubTotalRegHours, [Project Status].SubTotalAfterHours, [Project Status].SubTotalLeaveHours
FROM [Project Status]
WHERE ((([Project Status].Date) Between [Forms]![Reports by Team dialog]![StartDate] And [Forms]![Reports by Team dialog]![EndDate]) AND (([Project Status].SubDepartment) In ([Forms]![Reports by Team dialog]![cboTeam])));
The only filters should be a date range and by sub department. I just need the user to be able to select any combination of sub departments for the report.