Hello all,
Every year, employees receive a salary increase based on our collective agreement. I have a database that tracks salary costs and I need to update to the new salary values. The salary table is structured as follows:
tblSalary
EmployeeID (FK to tblEmployees)
SalaryID (Autonumber PK)
Salary
StartDate
EndDate
The EndDate for all employees is currently set to Oct 31, 2008 as the new salary takes effect November 1st. The increase to each employees salary is 2.5%.
I would like to avoid generating a new record for every Employee with a start date of November 1st. I suspect I can save myself a lot of work with an Insert Query, but I'm not sure how I would go about inserting a new record for each Employee with a new Salary, startDate and endDate.
Is this possible or am I stuck keying?
(I have a very basic knowledge of VBA, so if it cannot be done with a query, is a Function the answer?)
Thanks in advance,
V
Every year, employees receive a salary increase based on our collective agreement. I have a database that tracks salary costs and I need to update to the new salary values. The salary table is structured as follows:
tblSalary
EmployeeID (FK to tblEmployees)
SalaryID (Autonumber PK)
Salary
StartDate
EndDate
The EndDate for all employees is currently set to Oct 31, 2008 as the new salary takes effect November 1st. The increase to each employees salary is 2.5%.
I would like to avoid generating a new record for every Employee with a start date of November 1st. I suspect I can save myself a lot of work with an Insert Query, but I'm not sure how I would go about inserting a new record for each Employee with a new Salary, startDate and endDate.
Is this possible or am I stuck keying?
(I have a very basic knowledge of VBA, so if it cannot be done with a query, is a Function the answer?)
Thanks in advance,
V