Multiple field indexes: first and last name in a unique entity

B

Brigid Kowalczyk

I'm making a database for all the students and staff at a law school. for
those with the same last name, I want to have two fields to force uniqueness
upon, not just one. How do I do that?
 
J

Jerry Whittle

What happens when you have two John Smith's in the school?

Open the table in design view.
Go to View, Indexes.
In the next open line put something like NamesIndex in the Index Name column.
Select your Last Name field in the Field Name dropdown.
Directly below this, select the First Name field from the dropdown.
Click back onto this index name.
Towards the lower left of the window, change Unique to Yes.

Johnny Smith?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top