D
domibud
I have a db that record employee's transportation expenses.
If an employee being promoted or change department, I'd like for his/her old
transportation expense records locked. Then, the new transportation expense
record will refer to he/she in the new department.
Ex., Employee A in Dept. B being promoted to Dept. C.
To update this, I just need to update my employees table. But if I do this,
all transportation expense records regarding employee A will change
department from B to C. I want all transportation expense record of employee
A when s/he in department B do not change or locked. And the new one will
record employee A transportation expenses in department C.
I'm thinking of adding a new table for storing historical data. If a
promotion/demotion happen, the old record will be copied to the history table
(Expense record and employees record), and will be deleted in the expense
table. The new record than will be stored to the expense table.
Any better idea on how to do this effectively?
I'm using Ms. Access 2003.
If an employee being promoted or change department, I'd like for his/her old
transportation expense records locked. Then, the new transportation expense
record will refer to he/she in the new department.
Ex., Employee A in Dept. B being promoted to Dept. C.
To update this, I just need to update my employees table. But if I do this,
all transportation expense records regarding employee A will change
department from B to C. I want all transportation expense record of employee
A when s/he in department B do not change or locked. And the new one will
record employee A transportation expenses in department C.
I'm thinking of adding a new table for storing historical data. If a
promotion/demotion happen, the old record will be copied to the history table
(Expense record and employees record), and will be deleted in the expense
table. The new record than will be stored to the expense table.
Any better idea on how to do this effectively?
I'm using Ms. Access 2003.