J
JWCrosby
I have a table of 25 employees (tblEmployees), each with an EmployeeID field
(primary key) and first name, last name, etc. fields.
Another table (tblPayrollRecords) holds monthly data on each employee,
linked on the EmployeeID field in a one-to-many relationship. One of the
fields in this table is named "Month".
Since I'm building the database, I'd like to "seed" the latter table and
create 12 records for each employee; 1 record for each month of the year.
Therefore, the Month field would have "Jan", "Feb", "Mar", etc. I would end
up with 300 records in the table (25 employees with a record for each month
of the year).
So, I need coding for an append query. Must be some sort of a loop I would
think.
Can anyone help me?
Thanks in advance.
Jerry
(primary key) and first name, last name, etc. fields.
Another table (tblPayrollRecords) holds monthly data on each employee,
linked on the EmployeeID field in a one-to-many relationship. One of the
fields in this table is named "Month".
Since I'm building the database, I'd like to "seed" the latter table and
create 12 records for each employee; 1 record for each month of the year.
Therefore, the Month field would have "Jan", "Feb", "Mar", etc. I would end
up with 300 records in the table (25 employees with a record for each month
of the year).
So, I need coding for an append query. Must be some sort of a loop I would
think.
Can anyone help me?
Thanks in advance.
Jerry