foreign key

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

Foreign Key

resolvedResolved · Low Priority · Version 2003

Sue has attended:
Access Introduction course
Access Intermediate course

Foreign Key

When is this ussed?

RE: Foreign Key

Hello Sue

Thank you for your question and welcome to the forum.

A foreign key is used to be able to link two tables with each other - typically what is used as a foreign key in one table will be the primary key in another; then the tables are linked with each other by these keys (primary+foreign).

There is a good explanation with an example database available via the link below:
http://www.databasedev.co.uk/primary_foreign_key_constraints.html

Kind regards
Amanda

Wed 29 Jul 2009: Automatically marked as resolved.


 

Access tip:

Related tables

When you have related tables such as Customers and their Orders, the Customer table is the Primary table.

Open the Customers table in datasheet view and go to the Home Tab and Records group. Click on the More option and choose Subdatasheet and then click on Subdatasheet again. Now choose the related table (Orders) and click ok.

Now you can click the + symbol by each company to show the related orders.

View all Access hints and tips


Server loaded in 0.08 secs.