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

microsoft access courses - primary key

Forum home » Delegate support and help forum » Microsoft Access Training and help » microsoft access courses - Primary Key

microsoft access courses - Primary Key

ResolvedVersion Standard

Dan has attended:
Excel Advanced course
Access Intermediate course

Primary Key

How do we combine the first to letters of FName and the first 3 letters of LName to create employee PK for dB?

RE: Primary Key

Hi Dan

To do this you would need to have all the details submitted to a form before they went anywhere the actual database. You would then need to write some code to get the letters that you need and join them. then submit to a database.

I would also say that the primary key has to be unique, so what would happen if two people had the same name?

I suggest you give you primary key a little more thought and make sure that there is no way that a duplicate will exist.

Hope this helps

David

Access tip:

Label printing

You can create a report in Access for printing labels All you have to do is is click New under the Reports object and then select Label Wizard and follow the steps

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.08 secs.