I am trying to create an input form for input to tables.
There is a main ‘TblContacts’ table with fields such as: ‘LastName’, ‘FirstName’, ‘Address’, etc. There are also ID fields for the Company and Country and joins to the ‘Company’ and ‘Country’ tables, each with just ID and name fields.
I want to have all the fields from the ‘TblContacts’ table and the ‘Name’ fields from the ‘Company’ and ‘Country’ tables on the form. I want to be able to select the ‘Name’ fields from the ‘Company’ and ‘Country’ tables from combo boxes and for these also to populate the ‘Company’ and ‘Country’ ID fields (from the ‘TblContacts’ table).
To create the form, I selected ‘Create’ – ‘Form’ whilst the ‘TblContacts’ was open.
Then, I added the combo boxes pulling the names from the ‘Company’ and ‘Country’ tables.
My problem is that the selection of the ‘Company’ and ‘Country’ names above is NOT populating the ‘Company’ and ‘Country’ ID fields on the form (taken from the ‘TblContacts’ table. I have checked in ‘relationships’ that the joins have been created.
I was able to achieve something similar before on a different form from other tables and cannot see what’s different.
Could somebody please let me know where I’m going wrong?
There is a main ‘TblContacts’ table with fields such as: ‘LastName’, ‘FirstName’, ‘Address’, etc. There are also ID fields for the Company and Country and joins to the ‘Company’ and ‘Country’ tables, each with just ID and name fields.
I want to have all the fields from the ‘TblContacts’ table and the ‘Name’ fields from the ‘Company’ and ‘Country’ tables on the form. I want to be able to select the ‘Name’ fields from the ‘Company’ and ‘Country’ tables from combo boxes and for these also to populate the ‘Company’ and ‘Country’ ID fields (from the ‘TblContacts’ table).
To create the form, I selected ‘Create’ – ‘Form’ whilst the ‘TblContacts’ was open.
Then, I added the combo boxes pulling the names from the ‘Company’ and ‘Country’ tables.
My problem is that the selection of the ‘Company’ and ‘Country’ names above is NOT populating the ‘Company’ and ‘Country’ ID fields on the form (taken from the ‘TblContacts’ table. I have checked in ‘relationships’ that the joins have been created.
I was able to achieve something similar before on a different form from other tables and cannot see what’s different.
Could somebody please let me know where I’m going wrong?