microsoft access courses - primary key
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

microsoft access courses - Primary Key

resolvedResolved · Low Priority · Version Standard

replyReply Thu 21 Jun 2007, 10:03Delegate Dan said...

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?

For upcoming training course dates see: Pricing & availability

replyReply Thu 28 Jun 2007, 13:14Trainer David said...

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:

Display current date & time in column of any width

The worksheet function =NOW() returns the current date & time. When entered into a column which is not wide enough to display the value NOW returns, the cell displays ###

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard