I know I'm missing something fairly simple here...
I have a form controlled by a table which has a foreign key to another table. I would like the user to input a value into a text box, and if that value is in the other table, place that primary key (the foreign key in the controlling table) as the value for that attribute in the controlling table.
Main_Stackup_Table
Stackup_ID (autonumber) -- PK
Cutter_ID -- FK
Holder_ID -- FK
Size
Weight
.
.
.
Cutter_Table
Cutter_ID (autonumber) -- PK
Cutter_Name
Cutter_Size
Color
.
.
.
Holder_Table
Holder_ID (autonumber) -- PK
Holder_Name
Manufacturer
Holder_Weight
.
.
.
So, the form is controlled by the Main_Stackup_Table and I would like there to be text boxes for the user to input a Cutter Name and one for Holder Name. If these values exist in their respective tables, the record's Cutter_ID and Holder_ID fields in the Main_Stackup_Table would populate with the associated Foreign Key (The ID's of the respective tables).
These are 1:Many relationships -- There will only be one unique Cutter_ID/Holder_ID, but many Stackups can use the same cutter and/or holder.
Thanks for any help provided, it is much appreciated.
Jeff
I have a form controlled by a table which has a foreign key to another table. I would like the user to input a value into a text box, and if that value is in the other table, place that primary key (the foreign key in the controlling table) as the value for that attribute in the controlling table.
Main_Stackup_Table
Stackup_ID (autonumber) -- PK
Cutter_ID -- FK
Holder_ID -- FK
Size
Weight
.
.
.
Cutter_Table
Cutter_ID (autonumber) -- PK
Cutter_Name
Cutter_Size
Color
.
.
.
Holder_Table
Holder_ID (autonumber) -- PK
Holder_Name
Manufacturer
Holder_Weight
.
.
.
So, the form is controlled by the Main_Stackup_Table and I would like there to be text boxes for the user to input a Cutter Name and one for Holder Name. If these values exist in their respective tables, the record's Cutter_ID and Holder_ID fields in the Main_Stackup_Table would populate with the associated Foreign Key (The ID's of the respective tables).
These are 1:Many relationships -- There will only be one unique Cutter_ID/Holder_ID, but many Stackups can use the same cutter and/or holder.
Thanks for any help provided, it is much appreciated.
Jeff