Hi everyone,
Here's a nice tricky one I got landed with!
Basically, what I need to do is insert a set of default values into a table if the values don't already exist, using the WK field as the trigger! Look at this:
EmployeeName Week EmployeeNo OT2
Me Myself 27 3525215 30
Me Myself 29 3525215 15
Me Myself 30 3525215 30.5
Me Myself 32 3525215 25.5
Me Myself 33 3525215 24.5
So, Access needs to look at the week numbers and insert weeks 28 and 31 (as they are missing) with the employee name, number and a value of 36 for the OT2 field.
Any help would, as ever, be gratefully appreciated! I suspect this may involve a recordset or two . . . . ?
Thank you,
--
Steven
Here's a nice tricky one I got landed with!
Basically, what I need to do is insert a set of default values into a table if the values don't already exist, using the WK field as the trigger! Look at this:
EmployeeName Week EmployeeNo OT2
Me Myself 27 3525215 30
Me Myself 29 3525215 15
Me Myself 30 3525215 30.5
Me Myself 32 3525215 25.5
Me Myself 33 3525215 24.5
So, Access needs to look at the week numbers and insert weeks 28 and 31 (as they are missing) with the employee name, number and a value of 36 for the OT2 field.
Any help would, as ever, be gratefully appreciated! I suspect this may involve a recordset or two . . . . ?
Thank you,
--
Steven