Coleman984
Registered User.
- Local time
- Today, 09:30
- Joined
- Jul 28, 2011
- Messages
- 89
I don't know exactly what I need in terms of how it is done in access. In real word terms what I need is a query to show how many employees are scheduled by department.
How do I create a query that will count the number of employees in that department that aren't off on that particular day? If 7 queries need to be created (one for each day) that would be fine as they could be strung together with a form.
Now this is the setup.
table tblEmployee with the following fields. This table contains the information that will link the other two tables:
pkEmployeeID as AutoNumber
txtFName as string
txtLName as string
EmpIDNo as number
dteHire as Date/Time
fkDeptID as Number
dteInactive as Date/Time
table tblEmpDaysOff with the following fields. This table contains multiple entries for each employee one for each day they are off:
pkEmpDaysOffID as AutoNumber
fkEmployeeID as number
longDayNumber as number
table tblDepartments with the following fields. This table contains the information regarding which department each employee is in:
pkDeptID as autonumber
txtDepartmentName as Text
How do I create a query that will count the number of employees in that department that aren't off on that particular day? If 7 queries need to be created (one for each day) that would be fine as they could be strung together with a form.
Now this is the setup.
table tblEmployee with the following fields. This table contains the information that will link the other two tables:
pkEmployeeID as AutoNumber
txtFName as string
txtLName as string
EmpIDNo as number
dteHire as Date/Time
fkDeptID as Number
dteInactive as Date/Time
table tblEmpDaysOff with the following fields. This table contains multiple entries for each employee one for each day they are off:
pkEmpDaysOffID as AutoNumber
fkEmployeeID as number
longDayNumber as number
table tblDepartments with the following fields. This table contains the information regarding which department each employee is in:
pkDeptID as autonumber
txtDepartmentName as Text