Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unique constraints

Status
Not open for further replies.

rrhandle

Programmer
Dec 26, 2001
193
US
Is there a way in Access 2000 to create a unique constraint or primary key composed of multiple fields?
 

In the design view, you can select the columns that should compose the Primary Key and hit the Primary Key button on the main toolbar or Select Edit | Primary Key.

If you want to create a multiple column index you can create a query like the following.

Create Unique Index IxEmpName
On Employees (LastName, FirstName, MidName)

This will create a Unique index on the table composed of three columns. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top