I want to create a form that users can fill out to enter an awards.
When they fill out the form, if their company or contact details already exist on the 'companies' or 'contacts' tables, I want them to be able to select this when they search.
If their company or contact details do not exist, I want them to be able to enter their details so their company and contact details are entered on to the 'companies' and 'contacts' tables.
This I can do. However, on the 'contacts' tables, all contact names are linked to a company on the 'companies' table, and vice versa.
On the '2024 entries' table, if you enter a new 'contact name' this gets added to the 'contacts table'. If you enter a new 'company' this gets added to the 'companies' table. However, the contact name is then not associated with the company name on the 'companies' table, and the company is not associated with the contact name on the 'contacts' table.
Is there a way to have it so when using the form to enter data on the '2024 entries' table, and entering new data into the contact name and company fields, the contact name and company automatically become linked on the 'contacts' and 'companies' tables?
Hope someone can help.