Results 1 to 6 of 6
  1. #1
    sharkey_lsu is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    31

    Form for many-to-many relationships

    I have two many to many relationships between three tables. These tables are named Clients, Operators, and Platforms. I have two junction tables; JctClientOperator and JctOperatorPlatform. I am able to establish the relationships but I am not sure how to create a form with the functionality that I need. Please reference the attached image for my relationship diagram.



    The first form I need to create will be named ClientDetails. This form needs to allow the end user to not only input the client details but also select one or more operators that are associated with this client.

    The next form will be named OperatorDetails. As before this form needs to allow data input, but also the ability to select multiple clients as well as multiple platforms. If a client is inputed that is not present in the database, dialog will lead the EU to create a new client before returning to complete the new operator.

    Lastly (for now) I need to create a form named PlatformDetails. This form also needs the functionality to input platform details. It also needs to allow the EU to select multiple Operators.

    I appreciate any help that is able to be provided. I have also attached a zipped copy of what I have developed so far and would love additional advice/comment on what I have created so far.Click image for larger version. 

Name:	Capture.JPG 
Views:	20 
Size:	94.8 KB 
ID:	19729

    Database Download: Inspection System.zip

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Options for data entry form with many-to-many relationship, using client and operators as example:

    1. one form with two comboboxes to select client and operator

    2. main form bound to Clients and subform bound to JctClientOperators with combobox to select operator

    3. main form bound to Operators and subform bound to JctClientOperators with combobox to select client
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    sharkey_lsu is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    31
    Quote Originally Posted by June7 View Post
    Options for data entry form with many-to-many relationship, using client and operators as example:

    1. one form with two comboboxes to select client and operator

    2. main form bound to Clients and subform bound to JctClientOperators with combobox to select operator

    3. main form bound to Operators and subform bound to JctClientOperators with combobox to select client
    Thanks for the quick reply but I still do not understand how any of these options will allow me to select multiple values within the combobox. Is there an example that you might know of with similar functionality?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You would not select multiple values, you would select one value for each record. Selecting multiple values would mean setting up a multi-value field in table. I NEVER use multi-value fields.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    sharkey_lsu is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    31
    I do not want to and also would never use multi-value fields. What I need is an intuitive way for the end user to select more than one operator for a client. The current method is that the EU would need to know the Autonumber ID associated with the operator to be able to type it into the JctClientOperators Table that is on the current form. This works but is in no way easy for an EU to use. Would you have a moment to open the sample I attached and see exactly what I'm talking about?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    User does not need to know and really should not even be aware of the autonumber ID. Use a multi-column combobox. I see that you are already familiar with multi-column combobox.

    Don't use a table as the SourceObject of a subform container, use a form - unless you setup the combobox in the table on the Lookup tab. However, I do not recommend setting lookups in table, especially if alias is involved.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 8
    Last Post: 07-21-2014, 03:35 PM
  2. Replies: 6
    Last Post: 04-28-2014, 06:48 AM
  3. Explicit Relationships and Implicit Relationships
    By Dazza666 in forum Database Design
    Replies: 2
    Last Post: 07-17-2013, 02:11 AM
  4. Replies: 2
    Last Post: 03-15-2013, 10:46 PM
  5. Replies: 1
    Last Post: 11-13-2012, 09:08 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