primary key use
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Primary Key use

Primary Key use

The UK's most regular instructor-led training courses.
Training information: ms+access+course/ · Microsoft.access.courses · Microsoft Access Training London
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version Standard

Primary Key use

Craig has attended:
Excel Advanced course
Excel VBA course
Access Introduction course
Access Intermediate course

by - delegate Craig [3 posts] (2008 Feb 25 Mon, 15:55) replyReply

How does the primary key help to link tables

Access Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003/XP 2008 Aug 29 Fri Bayswater 0 FULL    
2003/XP 2008 Sep 3 Wed Southwark 3 book now £224 £235
2007 2008 Sep 24 Wed Bloomsbury 0 FULL    
2003/XP 2008 Oct 8 Wed Southwark 5 book now £219 £235
2003/XP 2008 Oct 24 Fri Bloomsbury 7 book now £190 £224
2003/XP 2008 Oct 29 Wed Bayswater 8 book now £110 £224
Full Schedule: See all 55 Access Advanced course dates.
Bookings currently available until 25th November 2009.

RE: Primary Key use

by - trainer Rajeev gold contributer[323 posts] (2008 Feb 29 Fri, 16:56) replyReply

Dear Craig

Thank you for attending Excel and Access courses. I hope you enjoyed them and they were beneficial to you.

If believe you asked this question when you did Access Intro where we didn’t cover the practical aspect of using the primary key to link the two tables. We only looked at the theoretical side of using Primary key.

Since then I assume that you have done Access Intermediate where you may have learnt how to create relationships between tables by the help of Primary key.

Primary key is the field that contains data that is Unique. A common example of this would be in a Bank database in Customer’s Table the primary key would be Account Number.

Primary key helps in identifying a specific record within a table.

There are various type of relationships namely one-to-one, one-to-many, and many-to-many. The most common type is one-to-many so let me take you through this.

Step 1: In access open the database that you wish to establish relationship between tables.
Please ensure that you have a field with the same name on both tables. It should be a primary key on the main table. In the other it doesn’t need to be primary (this is known as Foreign Key)
Step 2: In the Database window click the Relationship button on the toolbar or choose Tools > Relationships…
Step 3: You may get a Show Table window which will enable you to choose the tables that you wish to create relationship for. If you do not see the show table window then please click on the Show Table Window button on the toolbar. You can also click on Relationships > Show Table…
Step 4: Choose the two or more tables you want to create relationships for and press Add button.
Step 5: Drag the primary key of the main table and drop it to the foreign key of the other table.
Step 6: In the Edit Relationship dialog box you can put tick on the enforce referential integrity to make sure that the records in both the tables are valid and so that you don’t accidentally delete or change the related data.
Step 7: Click Create.

I hope this helps in answering your question.

If this posting has helped in answering your query then I would request you to mark the posting as Resolved . If, however, it hasn’t and you need further clarification then please press the reply button and ask for further clarification with your specific question. In case you have a related question then please ask the question as a separate posting.


Kindest Regards

Rajeev Rawat
MOS Master Instructor 2000 and 2003


Related articles

· 3 Reasons to Switch from Excel to MS Access - You'll be Glad You Did!
· Quick Access Database Courses: A 10 Step Lesson in Encrypting and Decrypting an Access Database
· Turning your Spreadsheets into Interactive Data Warehouses with MS Access Courses
· The Benefits of Certified Microsoft Training in Access
· Why consider Access Visual Basic training?

Please browse our web site to find out more about
ms+access+course/ and other Microsoft training courses.

Access tip:

Add date to a field

Press CTRL+SEMICOLON

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz