Create new secondary constraint on a table using the Access UI

GoodyGoody

Registered User.
Local time
Today, 14:47
Joined
Aug 31, 2019
Messages
120
Hi, I was to create a secondary constraint on a table as a combination of 2 fields. How do I do this using the Access UI as opposed to doing it in SQL?

Thanks
Stephen
 
This requires the first name and last to be unique combination. Click on idexes. Give the index a name. Add the fields.
Index.jpg
 
Ah thank you! I new it had to be somewhere. Did an Alter table in the end :)
 
As already advised, creating a composite index on first and last name will prevent you having more than one person with the same names.
In my experience, you may regret doing that.
 
No this is to keep the runnerracenumber unique for a race which of course is what you want. Only one number per race. :)
 
creating a composite index on first and last name will prevent you having more than one person with the same names.
That was only an Generic example of how to create a composite index. I do not even know if those are fields in the table.
 

Users who are viewing this thread

Back
Top Bottom