My DB has four tables: tblContact, tblPerformance, tblState, and tblComments.
In tblContact there is a field (ContactID) which links all the tables together. It is a PK in tblContact and a FK in the other tables.
I have form that has txtboxes to enter data in each of the tables. (Except tblComments, it is a subform on that form.)
Now when a user enters data into a field that is in tblContact (say for example ContactName) ContactID will autonumber correctly. However when the user types into a field that is for any of the other tables (besides tblComments) the ContactID for that table will not populate the autonumber. It will just make a 0.
Then of course i get a message when i try to save.
In short, my foreign keys are not populating with the correct primary key value.
(FYI, my PK is a autonumber and the FKs are all just set as numbers.)
In tblContact there is a field (ContactID) which links all the tables together. It is a PK in tblContact and a FK in the other tables.
I have form that has txtboxes to enter data in each of the tables. (Except tblComments, it is a subform on that form.)
Now when a user enters data into a field that is in tblContact (say for example ContactName) ContactID will autonumber correctly. However when the user types into a field that is for any of the other tables (besides tblComments) the ContactID for that table will not populate the autonumber. It will just make a 0.
Then of course i get a message when i try to save.
In short, my foreign keys are not populating with the correct primary key value.
(FYI, my PK is a autonumber and the FKs are all just set as numbers.)