foreign keys
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 » Foreign Keys

Foreign Keys

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

resolvedResolved · Low Priority · Version 2003

Foreign Keys

Mick has attended:
Access Intermediate course

by - delegate Mick [1 post] (2008 Jul 8 Tue, 17:04) replyReply

Do foreign keys always have to be specified

Access Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Nov 26 Wed Bloomsbury 3 book now £224 £235
2007 2008 Nov 28 Fri Bloomsbury 3 book now £240 £245
2003 2008 Dec 3 Wed Southwark 7 book now £203 £230
2003 2008 Dec 19 Fri Bloomsbury 6 book now £214 £230
2003 2008 Dec 24 Wed Bayswater 0 FULL    
2003 2009 Jan 7 Wed Southwark 7 book now £203 £230
Full Schedule: See all 47 Access Advanced course dates.
Bookings currently available until 25th November 2009.

RE: Foreign Keys

by - delegate Mark silver contributer[50 posts] (2008 Jul 10 Thu, 21:47) replyReply

Hi Mick,

Foreign keys don’t have to be specified for most purpose they do, although they are not assigned or written as being foreign keys in the same way as primary keys are. The foreign key is simply a way of telling the Access program how you want information to link together. Generally, there is a natural link field between tables and it is generally best to create the link, and to make the link as strong as the situation calls for or allows.

As you may already know, the link is specified by going to relationships view and dragging a primary key onto the field to relate to and this action creates and specifies the foreign key.

However, if you name the two fields to be lined with the same name and they have the same data type, Access will create the link automatically in the absence of any other between the two tables, so here is a case where you do not have to specify.

In addition to this there are special situations where you do not want any links at all between two tables. For example when you want to create what I call a user held parameter value, which is a technique that begins with adding a repeated value against every record and suing tow tables in q query with no links in the query.

I hope this was of some help, --Regards, Mark

RE: Foreign Keys

by - trainer Rajeev gold contributer[462 posts] (2008 Jul 24 Thu, 11:41) replyReply

Dear Mark

Thank you for your input.

It was beuatifully explained!!

Many thanks

MOS Master Instructor 2000/2003
MCAS Master Instructor 2007


Related articles

· Microsoft Access, an Efficient Database Tool
· Quick Access Database Courses: A 10 Step Lesson in Encrypting and Decrypting an Access Database
· Why a Microsoft Access Course Could Change the Way You Do Business
· Access VBA Handling Errors and Debugging Code
· Why go on a Microsoft Access Training Course?

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

Access tip:

Space marks

It is good practice not i to have space marks for field names as this can lead to problems when using queries or VBA code. It is much better to use an underscore charcter to represent spaces in field names

View all Access hints and tips

Rate this page:
3.5/5 (2 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider 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

Training Articles

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