SumedhaWeerasur
7 years agoQrew Cadet
Forcing a text field to be unique in two tables
I have a serial number field in two tables. I have set these two fields to be unique. These two tables are not currently related to each other but they can be if needed.
Both tables use the default record ID as its key field.
When a record is being added in either table, i would like for my application to check other table to see if the serial number exists. IF it dose exists. id like it to be prevent me form adding a record or at least let me know that the serial number exists. Basically i want to keep serial numbers unique in both tables and not just one. Is there a way to do this?
Both tables use the default record ID as its key field.
When a record is being added in either table, i would like for my application to check other table to see if the serial number exists. IF it dose exists. id like it to be prevent me form adding a record or at least let me know that the serial number exists. Basically i want to keep serial numbers unique in both tables and not just one. Is there a way to do this?