C
CEV
Hi, I have what I beleive to be a difficult one. At least for me anyways. I
have a database that tracks Employees and EmployeePositions. Our agency
provides services for people with disabilties so we will have people that
will change positions sometimes to a different group home. I am trying to
create a qry that will show these changes. The qry I have so far is shown
below. It is pretty basic right now because any criteria I thought to add
would still only show 1 record. An Employee will show multiple records in
tblEmployeePositions as they change a position. Therefore, one postion
number for that Employee will have an DateEnded and then the next record
will have a DateStarted. These two dates will be the same and I would like
to create a report that shows which Position they were in and which Position
they went to. I'm hoping someone here can lend a helping hand.
SELECT tblEmployees.LastName, tblEmployees.FirstName,
tblEmployeePositions.PositionNumber, tblEmployeePositions.DateStarted,
tblEmployeePositions.DateEnded, tblEmployeePositions.Title,
tblEmployeePositions.Status, tblEmployeePositions.Hours,
tblEmployeePositions.Schedule
FROM tblEmployees INNER JOIN tblEmployeePositions ON
tblEmployees.EmployeeNumber = tblEmployeePositions.EmployeeNumber;
Thanks,
Chad
have a database that tracks Employees and EmployeePositions. Our agency
provides services for people with disabilties so we will have people that
will change positions sometimes to a different group home. I am trying to
create a qry that will show these changes. The qry I have so far is shown
below. It is pretty basic right now because any criteria I thought to add
would still only show 1 record. An Employee will show multiple records in
tblEmployeePositions as they change a position. Therefore, one postion
number for that Employee will have an DateEnded and then the next record
will have a DateStarted. These two dates will be the same and I would like
to create a report that shows which Position they were in and which Position
they went to. I'm hoping someone here can lend a helping hand.
SELECT tblEmployees.LastName, tblEmployees.FirstName,
tblEmployeePositions.PositionNumber, tblEmployeePositions.DateStarted,
tblEmployeePositions.DateEnded, tblEmployeePositions.Title,
tblEmployeePositions.Status, tblEmployeePositions.Hours,
tblEmployeePositions.Schedule
FROM tblEmployees INNER JOIN tblEmployeePositions ON
tblEmployees.EmployeeNumber = tblEmployeePositions.EmployeeNumber;
Thanks,
Chad