That is much clearer :)
What you need to start with is a
Table 3 (
HourReport) set up with foreign keys to link into the
MembersDetails &
Branches tables. It is only necessary to have these fields in the table (
Table 3 ==
HourReport). There is no need (indeed it would be an error) to include any other fields from either of the other two tables.
Table=
HourReport - Field Type Index
-
WorkNumber AutoNumber PK
-
EmpNumber Numeric FK (MembersDetails)
-
BrNumber Numeric FK (Branches)
-
WorkDate Date
-
Hours Numeric
Now, your form should have ComboBoxes for both foreign key fields. These should be fed by the data from the tables they are keys of. Once a record is selected the related data should be shown on the form, but
not in bound controls. This can be done with unbound textboxes updated by code in an AfterUpdate event procedure for the ComboBox, or simply design the ComboBoxes such that the key is treated as the value but the related data is what is shown in the control when selected.
After that the rest should be simple enough. Let us know how you get on, or if you have any further questions on the matter.