Go Back   Talk Microsoft > Microsoft Operating Systems & Software > Microsoft Office Family

Reply
     I have a question about many-to-many relationships in Microsoft Access?  
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2007, 06:20 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default I have a question about many-to-many relationships in Microsoft Access?

All of the literature I read has said that many-to-many relationships do not work in Microsoft Access. Why do they not work? Does Microsoft Access give you an error or something? I understand what has to be done to split up the table into two one-to-many relationships.
Reply With Quote
Links
  #2 (permalink)  
Old 11-04-2007, 07:25 AM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default

A many to many relationship is a logical relationship. When you build tables in MS Access, or any database, you are building a physical relationship. To do this, you need to build an intersect table. It's always a many to one with the intersect table for both tables it's connecting. In the logical relationship, you can assume the intereset table exists, so you can delete it from logical discussions.
Reply With Quote
  #3 (permalink)  
Old 11-04-2007, 07:26 AM
Junior Member
 
Join Date: Oct 2007
Posts: 11
Default

Access does not have an EXPLICIT Many-To-Many relationship. However, using One-To-Many relationships, you can create a Many-To-Many relationship.

My apologies to Colinc but, knowlegeable as he may be, I have to (amiably) disagree with him. There are times when a Many-To-Many relationship is preferable, if not absolutely necessary.

A simplified example is a situation where a company has many employees and many different tasks. Each employee is assigned multiple tasks, and each task is staffed by different groups of employees. That can be represented in a Many-To-Many relationship by:

EMPLOYEE==>EMPLOYEE_TASK<==TASK (with referential integrity enforced)

where EMPLOYEE==>EMPLOYEE_TASK is a One-To-Many relationship and TASK==>EMPLOYEE_TASK is a One-To-Many relationship.

When key fields are defined judiciously, the relationships are simple to create -- and easy to understand (easy to work with, too).

§
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:04 PM.