Results 1 to 3 of 3
  1. #1
    barbP is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    2

    multiple many-to-many relationships

    Hi - in my db I track information from research articles about climate hazards and how people respond.


    there are two many-to-many relationships: an article might mention many hazardEvents and each hazardEvent can be mentioned in many articles.
    for each HazardEvent there can be many ways people respond (=ResponseTypes)
    and each responseTYpe can be used for many HazardEvents.
    Below is a screenshot of a query to return for each paper the hazard event and the types of responses.
    Here is my problem: in cases where the same hazEvent is mentioned in several papers but different responseTYpes are mentioned, the query returns a record for each responseType and links it to each article. But I only want the responseType that is mentioned in the article.
    What is the reason for this incorrect association and what can I do to fix it?

    Click image for larger version. 

Name:	Qry 4 forum.png 
Views:	13 
Size:	68.4 KB 
ID:	19751

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I don't think your data structure is quite right. If you want to record the ResponseType associated with each paper's article you would have to have another table that listed the REFERENCEMM ID and the ResponseType_ID Then your RESPONSEMM would be linked to this new table and NOT to the HAZARD_EVENTS table. You are having trouble because you are not relating the different responses mentioned in each paper's articles.

  3. #3
    barbP is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    2
    Thanks - yes - I see this now. I have changed my design. I added the ResponseTYpeID to the referenceMM and deleted the responseMM. That simplifies the design and also reflects the fact that both hazardEvents and Responses are referenced in the articles.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. multiple many-to-many relationships
    By FMAlanbrooke in forum Database Design
    Replies: 1
    Last Post: 09-11-2014, 04:33 AM
  2. ARGH! Multiple Many-to-Many Relationships!
    By Pienuts in forum Database Design
    Replies: 18
    Last Post: 03-14-2013, 10:20 AM
  3. Multiple one to many relationships
    By Iain in forum Database Design
    Replies: 6
    Last Post: 07-01-2012, 03:49 PM
  4. Many to Many Relationships for Multiple Tables?
    By RichNCSU in forum Database Design
    Replies: 13
    Last Post: 05-03-2012, 03:07 PM
  5. Displaying Multiple Relationships
    By paddon in forum Reports
    Replies: 7
    Last Post: 12-06-2010, 04:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums