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

foreign key

ResolvedVersion 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:

Prefixed Autonumbering

When using Date Type = Autonumber as a primary key, clients may require autonumbering to be prefixed with a letter.

For example, P001, where P is the prefixed letter

Instructions
Step 1. Create Field Name
Step 2. Set Data Type to Autonumber
Step 3. Within Field Property General tabsheet,
enter Format property as [backslash]P000



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