C
CEV
Hi, I am working on a turnover database and I am fairly new to Queries and
Reports. I have 3 tables called Employees, Positions, and EmployeePositions.
For starters, I am trying to get a report (that will be run monthly) that
shows the total number of positions that are marked as "Active" for each
department and also show the number of positions that are open. In the query
I have the following fields so far.
Department
Inactive These 2 are from tblPositions
DateStarted
DateEnded
PositionNumber These 3 are from tblEmployeePositions
The DateStarted and DateEnded are the dates that an employee is/was employed
in the PositionNumber. I created a form called frmSelectDateRange for me to
enter in the dates of a given month like 3/1/06 - 3/31/06. Each
PositionNumber may have multiple entries with start and end dates as
employees come and go. I want the query to calculate per department how many
positions have an end date and do not have a start date between the entered
dates on the frmSelectDateRange. If I'm thinking correctly, this should give
me the number of open positions at the end of the month. Am I correct on
this? How do I enter the criteria into the query to do this?
Thank You,
CEV
Reports. I have 3 tables called Employees, Positions, and EmployeePositions.
For starters, I am trying to get a report (that will be run monthly) that
shows the total number of positions that are marked as "Active" for each
department and also show the number of positions that are open. In the query
I have the following fields so far.
Department
Inactive These 2 are from tblPositions
DateStarted
DateEnded
PositionNumber These 3 are from tblEmployeePositions
The DateStarted and DateEnded are the dates that an employee is/was employed
in the PositionNumber. I created a form called frmSelectDateRange for me to
enter in the dates of a given month like 3/1/06 - 3/31/06. Each
PositionNumber may have multiple entries with start and end dates as
employees come and go. I want the query to calculate per department how many
positions have an end date and do not have a start date between the entered
dates on the frmSelectDateRange. If I'm thinking correctly, this should give
me the number of open positions at the end of the month. Am I correct on
this? How do I enter the criteria into the query to do this?
Thank You,
CEV