Results 1 to 5 of 5
  1. #1
    Andrew88 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Location
    Canada, eh?
    Posts
    3

    Forms with subforms. Many-to-many relationship building.

    Hey there everyone! I have been creeping the forum and using the advanced search, however I haven't found the answers I seek.



    I have a database that is made up of 10 tables. Using these 10 tables, I have created multiple forms that I will be using in our sharepoint as XML forms for our sales teams.

    On the main contact form called "Contact Details", information is pulled from the "Contact" table and shown. There are also two working subforms, that show two different types of products that the contact might hold. For example, Bob might hold 3 or 4 different products of "X" and 2 of "Y". I have created click throughs that will allow you to drill down to the actual product information for that client. No problems here.

    The one that is giving me issues is the "Group Product". A company (different table than the contact table) has a specific product (again, it could be 1 or 5 products they hold). On the "company info" form, I have the subform working to show what products the company holds. No problems with that.

    However, in the Contact Details form, I cant get a subform working to display the groups to which this person is a member of. A company can have many groups, and a contact can be a member of many groups as well. What I need to do is be able to also tie multiple contacts to multiple groups (many to many relationship). For example, Bob might work for XYZ company, and be a part of the group product. I want to click on the "contact details" form and see a subform that shows the products, just as the other two are already working do. I want to also have form control to click through to that record.
    Any pointers on to where I need to focus attention to?

    Just writing the above, I have an idea of something I can try. I will be working on that idea while waiting for some suggestions to roll in. If I get what I'm after, I will update this posting!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Can you post a jpg of your tables and relationships?

  3. #3
    Andrew88 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Location
    Canada, eh?
    Posts
    3
    Sure, here it is.
    Attached Thumbnails Attached Thumbnails AccessRelationships.jpg  

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Based on your tables and relationships and Contacts_1 Contacts_2 and Contacts_3 specifically

    You should so some research on
    Normalization
    Database Design and
    Entity Relationship Diagramming ... http://www.rogersaccesslibrary.com/T...lationship.zip

    Here are a few links to get you started
    Once you get an understanding of Normalization, you'll appreciate database a lot more.

    Here are some links to videos and site that should help. These are geared to database design.

    http://www.youtube.com/watch?v=IiVq8M5DBkk Logical data modeling

    http://www.youtube.com/watch?v=BGMwuOtRfqU Candidate key

    http://www.youtube.com/watch?v=ZiB-BKCzS_I Normalization

    http://www.youtube.com/watch?v=pJ47btpjAhA Normalization example

    http://www.youtube.com/watch?v=q3Wg2fZENK0 1st Normal form

    http://www.youtube.com/watch?v=vji0pfliHZI 2nd Normal form

    http://www.youtube.com/watch?v=HH-QR7t-kMo 3rd Normal form

    http://www.youtube.com/watch?v=q1GaaGHHAqM E_R Diagramming

    http://www.youtube.com/watch?v=lXAGQ8vmhCY ERD Part 2

    See What is Normalization here also.

    The first few topics are well worth the read.

    http://www.rogersaccesslibrary.com/forum/topic238.html

    For help with access generally, this link has been referenced often
    http://www.accessmvp.com/strive4peace/ Lots of Access Syntax, rationale, samples etc.


    Good luck with your project. If you want to pursue further, just post.

  5. #5
    Andrew88 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Location
    Canada, eh?
    Posts
    3
    Thanks! Will do!

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

Similar Threads

  1. building a one to many relationship
    By medused in forum Database Design
    Replies: 3
    Last Post: 06-27-2012, 03:44 PM
  2. Building Relationship: one to many
    By Keeper in forum Access
    Replies: 1
    Last Post: 04-25-2012, 05:31 PM
  3. subforms and relationship
    By phineas629 in forum Reports
    Replies: 3
    Last Post: 10-13-2011, 02:15 PM
  4. Building a String from Numerous Subforms
    By StudentTeacher in forum Programming
    Replies: 9
    Last Post: 07-17-2011, 07:16 AM
  5. Relationship Between Two Subforms
    By eww in forum Programming
    Replies: 2
    Last Post: 09-13-2010, 07:15 AM

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