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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Access primary key 1

Status
Not open for further replies.

Flyboy171

Technical User
Oct 31, 2006
1
US
I want my primary key to be more that 4 characters. For example TX181. I want six characters. How can I do that? I'm using Access 2003. THX
 
You can make the key any size you want that is a valid Access data type/size (except memo or blob, I believe).

The PK doesn't necessarily need to be a single field either.

In your example, it looks like you want an alpha-numeric key that is (always?) 6 characters. You'd make a text type field, length of 6. Click the key icon and you're set.

How you assign the values is a different story.
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top