Question

I am using access 2007. I made a database called holiday which has 3 tables namely:

client - this has all the client information
flight - this stores flight information
cruise - this stores cruiser information

what I'm thinking of doing, is to make a relationship between these three tables. I just thought myself "relationships" from google and from what I understand is that I should use a one-to-many relationship.

I did that each table has a column called customerID where the client table has it as a primary key and the others as foreign-key. What I want to know is how do I link up the tables so that when I enter information onto the client table both flight and cruise should open as subselection because currently only one is opening and I don't know how to enter the other?

Was it helpful?

Solution

There's 2 ways to create a relationship between tables.

One is permanently with the Relationships Window (under Database Tools in Access 2010). Drag from a field in one table to a field in an other table. Then double click on the line (join) to edit the join type.

The other is to do this temporarily in A Query Builder window. Then you create the join the same way as above. This join is only set in this query only, or anything else based on this query.

OK, now that you them joined, what are your plans. One way is to create a form for editing the customer info, along with two sub-forms for editing the flight & cruise info.

Good luck

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top