Hey,
I am working on a database and one of the tables is tblemployee which had the following fields
- Name
- Department
- Date of Hire
- Date of Transfer
- Date Inactive
Also I have tblemployeeArchive which have the following fields
- Name
- Department
- Date of Hire
- Date of Transfer
- Date Inactive
I have created an Append Query (qryAppendtotblemployeeArchive) which works great when adding new employee.
The problem I am having is when the employee transfers to another department. I want to append that information to tblemployeeArchive but for some reason it doesn't work
FOR EXAMPLE:
John Doe in Department "X" hired on 1/1/2014
He got transferred to department "Y" on 5/1/2014.
He got transferred again to department "Z" on 11/1/2014
So my tblemployeeArchive should show
ID Name Dept DateofHire DateofTransfer
1 John Doe X 1/1/2014 Null
2 John Doe Y 1/1/2014 5/1/2014
3 John Doe Z 1/1/2014 11/1/2014
So how can I modify "qryAppendtotblemployeeArchive" to work for both conditions adding new employees and when employees have changed departments as per the example above
Thank you in advance
RB
I am working on a database and one of the tables is tblemployee which had the following fields
- Name
- Department
- Date of Hire
- Date of Transfer
- Date Inactive
Also I have tblemployeeArchive which have the following fields
- Name
- Department
- Date of Hire
- Date of Transfer
- Date Inactive
I have created an Append Query (qryAppendtotblemployeeArchive) which works great when adding new employee.
The problem I am having is when the employee transfers to another department. I want to append that information to tblemployeeArchive but for some reason it doesn't work
FOR EXAMPLE:
John Doe in Department "X" hired on 1/1/2014
He got transferred to department "Y" on 5/1/2014.
He got transferred again to department "Z" on 11/1/2014
So my tblemployeeArchive should show
ID Name Dept DateofHire DateofTransfer
1 John Doe X 1/1/2014 Null
2 John Doe Y 1/1/2014 5/1/2014
3 John Doe Z 1/1/2014 11/1/2014
So how can I modify "qryAppendtotblemployeeArchive" to work for both conditions adding new employees and when employees have changed departments as per the example above
Thank you in advance
RB