Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

primary key and first

Forum home » Delegate support and help forum » Microsoft Access Training and help » Primary key and first field in a table...

Primary key and first field in a table...

ResolvedVersion 2003

Emma has attended:
Access Intermediate course
Access Introduction course

Primary key and first field in a table...

Does thje first field in the table have to be a number? Like account number etc? or can it be text? and also can i confrim that if so this would be the primary key?

RE: primary key and first field in a table...

Hi Emma,
Thank you for your question;
In reply: No it does not have to be a number, you can use text for a primary key as well, the only stipulation is that it must be unique... ie for a Department Table, MK for Marketing, SA for Sales, FI for Finance all perfectly acceptable, account number could be a mixture of both ie company name and number Tesco = TES01 -- get the picture?
I hope that helps ...Pete

Wed 24 Dec 2008: Automatically marked as resolved.

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.