Results 1 to 6 of 6
  1. #1
    zivtir is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    2

    many to many


    Hi,
    I have 3 tables
    1.Contacts
    2.Groups
    3. ContactsGroups (m:m)

    I have contact form for editing and addnig the contact table.
    the point is that 1 contact can belongs to many group.
    maybe someone know how can I implement it on the form?

    thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Typically we deal with this as two 1:m relationships with one side at a time.

  3. #3
    zivtir is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    2
    but if i nevertheless need that

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Then you will need to get very creative. That is the best I can supply for advice, sorry.

  5. #5
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    Since you already have a Contacts form, add a subform based on ContactsGroups. The subform needs just 1 field... the GroupID field from ContactsGroups. Replace that textbox with a combo box that uses GroupName and GroupID from the Groups table. Display Groupname. Store GroupID.

  6. #6
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    161
    I Had privious solve simmillar problem like ths
    Create relationship Contacts Table (1)---(∞)> ContactsGroups (∞)----->(1)Groups
    Keep both the fields in ContactsGroups as primary with Key symbol
    After ctreating the Many to many relationship
    Create a table with Groups Table as raw sourse
    Create append query with parameter asking for Group and contact This should add the data of both group and Contacts as asked to append table as ContactsGroups
    This will solve your problem Active refresh macro to view details in subform showing fields of ContactsGroups
    Hope this will solve your issue

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

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