A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2006, 06:30 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Multiple field indexes: first and last name in a unique entity

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?
  #2  
Old April 20th, 2006, 09:54 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Multiple field indexes: first and last name in a unique entity

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?

--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Brigid Kowalczyk" wrote:

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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.