How to inseart foreign key

deepmob

Registered User.
Local time
Today, 11:44
Joined
Apr 28, 2007
Messages
15
i am creating a database and i had created two tables one is holidays and second is departure date.. in the holidays table the primary key is holiday code.
and in the departure date table the primary key is Departure Key and there is also field is Holiday Code. now i had create two tables and then i had insert both the table in one but the problem is this when i am changing the primary key's data of holidays table but the rest field is not changing.. i think its need to assign foreign key but i don't know how to do that can u plz tell me how to insert the foreign key.

i doing my assignment and i am stuck here plz reply me soon so that i can move further..
 
Since you admit this is an assignment, I will point you where you need to look but won't do more than that.

To make a foreign key link back to its primary, you must explicitly declare a relationship between the main and secondary tables that links the two fields - parent and child, master and slave, whatever terminology you use. THEN if you want things to be automatic you must use a QUERY that exploits the relationship by having both tables contribute to the query. With a defined relationship, Access will help you. Without that relationship you are forced to do all by hand, which ain't fun.
 

Users who are viewing this thread

Back
Top Bottom