I am trying to use a main form and a sub form to enter data into 2 related tables.
The main table has the fields:
Date:
Line:
Shift:
The child table which has the following fields:
Date:
Line:
Shift:
Downtime Hours:
Reason Code:
For every 1 record in the main table, there could be multiple records in the chile table. The unique index (and primary key) for the main table is on the multiple fields of Date,Line and Shift. That is, every record in the parent table must have a unique date, line and shift.
I would like to use a main form and sub form for the purpose of entering data into the two tables. What I would like to have happen is once a Date, Line, and Shift is entered in the main table, these values would default to the date, line and shift values in the child table.
Then the user would only enter the downtime hours and reason code.
Please help if you can.
Thank you.
The main table has the fields:
Date:
Line:
Shift:
The child table which has the following fields:
Date:
Line:
Shift:
Downtime Hours:
Reason Code:
For every 1 record in the main table, there could be multiple records in the chile table. The unique index (and primary key) for the main table is on the multiple fields of Date,Line and Shift. That is, every record in the parent table must have a unique date, line and shift.
I would like to use a main form and sub form for the purpose of entering data into the two tables. What I would like to have happen is once a Date, Line, and Shift is entered in the main table, these values would default to the date, line and shift values in the child table.
Then the user would only enter the downtime hours and reason code.
Please help if you can.
Thank you.