[Solved] Data dropdown list fails to save entry linked to foreign key
Posted: Wed Dec 20, 2023 1:32 pm
Hi there,
I have been experiencing troubles with a silly problem but I cannot get it fixed.
I would simply like to use a data dropdown function to select a value that is linked to another table. That is,
I have EVENT table that has contact_id label that is link to CONTACT table. I have get contact_id (the primary key lable of the CONTACT Table) to show me the value linked to the primary key which is first_and_last_name. Now whenever I select the value that is shown as a first_and_last_name and try to save the record the value gets deleted in the form and resets to empty. If i changed the table directly with the CONTACT_ID numbers linked to the other table it gets saved. If I also change the control configuration to view the CONTACT_ID to show me the actual IDs of the referenced table and select any number in the form, the entry does not get registered and the data validation box resets to empty once again. Below are the configuration of the data field: the sql in list content is: SELECT "first_and_last_name", "first_and_last_name" FROM CONTACT
I have been experiencing troubles with a silly problem but I cannot get it fixed.
I would simply like to use a data dropdown function to select a value that is linked to another table. That is,
I have EVENT table that has contact_id label that is link to CONTACT table. I have get contact_id (the primary key lable of the CONTACT Table) to show me the value linked to the primary key which is first_and_last_name. Now whenever I select the value that is shown as a first_and_last_name and try to save the record the value gets deleted in the form and resets to empty. If i changed the table directly with the CONTACT_ID numbers linked to the other table it gets saved. If I also change the control configuration to view the CONTACT_ID to show me the actual IDs of the referenced table and select any number in the form, the entry does not get registered and the data validation box resets to empty once again. Below are the configuration of the data field: the sql in list content is: SELECT "first_and_last_name", "first_and_last_name" FROM CONTACT