What is a foreign key

richardplr

Registered User.
Local time
Tomorrow, 03:15
Joined
Jun 10, 2003
Messages
239
Can someone explain what is a foreign key,

any example in this access forum.

Thank you
 
Define Primary Key.
A Primary Key is a unique record identifier in each table.

Define Foreign Key.
Foreign Key refers to the Primary Key of another table. The Foreign Key must be the same field type (Number) as the Primary Key.

Define a "relationship" between two or more tables.
The data in each table must be related in some way - they have to need each other to be complete. In our Student & Advisor example that we have been using, there is related data in the pieces of information because each advisor has students to advise and every student has an advisor. :cool:

From:

http://cru.cahe.wsu.edu/training/Access97/answers2.html
 
Please stick to one post on the subject
 
I think that he has posted again because he did not understand the responses in his first thread, I have to wonder if he followed KenHigg's advice to read Access help?
I also think he is expecting the foreign key to have some sort of icon indicating it. Please read the access help.

Brian
 
Apologise

I am very sorry which cause so much problem here.

I greatly regretted and promised will not do it again.

In future, I will not post the same thread at different place. :p

I will try my best to understand from access help.

Once a gain, I hereby apologise to everyone.

Regards,
Richard tan
 

Users who are viewing this thread

Back
Top Bottom