Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Many-to-Many relationship issue

Status
Not open for further replies.

DanKay1

Programmer
Jun 9, 2004
54
US
I have Billing Table and CashFlow Table
Each billingID might have several CashFlowID and each CashflowID might be assigned to several BillingIDs.

I need to create many-to-many relationship.
Do I need to create intermediate table or its possible to create this relationship with 2 tables?
 
A many-to-many relationship is implemented with a third table having as primary key a composite index on the 2 foreign keys.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Is there a way to define foreign key in Access?
I only see the option to create a primary key.
 
Yes, in the RelationShips window.
In the table design view you create an index allowing duplicates on each foreign key, then in the database window, menu Tools -> Relations ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I did it but it doesnt say foreign key anywhere. Is it just conceptual or it should state foreign key next to those fields in the intermediate table?
 
It is just to help the wizards help you.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top