Results 1 to 5 of 5
  1. #1
    losingmymind is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    18

    Multiple Select ListBox help..??

    I’m hoping someone can help with this…it’s gotta be possible. Anyway, here’s what I’m trying to do. I have a database of “Customers” with all their pertinent data to include employees who are associated to that particular customer. There are over 150 employees and thousands of customers. What I want to do is be able to select more than one employee to be associated to a particular customer. Sometimes there’s just one, other times there’s 10. I want to be able to query an employee and see who all of his customers are even if there’s more than one employee attached to the customer without having duplicate customers for each employee. Does that make sense? I have a table with all the customers listed. The last column is the “Employee” but I can’t get more than one in there. A list box with “auto populate” would be good so I don’t have to scroll through all the Employees, too. Can anyone help? Thanks so much :-)

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    What you have have described is a classic 1 to many situation, and may be many to many.

    One Customer is served by several Employees.

    But can one employee serve several customers?

    See the article at this link for more info
    http://databases.about.com/od/specif...R-Diagrams.htm

  3. #3
    losingmymind is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    18

    Still a little confused

    Quote Originally Posted by orange View Post
    What you have have described is a classic 1 to many situation, and may be many to many.

    One Customer is served by several Employees.

    But can one employee serve several customers?

    See the article at this link for more info
    http://databases.about.com/od/specif...R-Diagrams.htm
    After reading everything from your link I have a better understanding of how it should work, however, I'm still a little confused as to how to create a foreign key. Maybe I can clarify my situation a little better....
    Employee 1 is associated to Customer 1, 5, 10, 80, etc.....
    Employee 2 is associated to Customer 1, 2, 10, etc....
    Employee 3 is associated to Customer 2, 15, 50 etc....

    I want to be able to Query Employee 1 and get Customers 1, 5, 10 etc to return or Query Customer 1 and get Employees 1 and 2 to return. Does that make sense? Also, some customers might be duplicated...for instance, Customer 1 might be encountered today and in three weeks from now that same customer will be encountered but with an entirely different situation so a new record needs to be created. Ultimately, if I were to query a customer I would be able to see all of his encounters...I might have confused you, sorry.

    Thank you for your input :-)

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    You have described a many to many

    Employees (1 and 2) are associated with Customers (1 and 10).
    Here is a free video tutorial on solving this.
    https://www.youtube.com/watch?v=7XstSSyG8fw

    Good luck

  5. #5
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    A screenshot of your form and or query would be helpful. A simple 2 table query with criteria should solve this! Also consider doing a Combobox and use a filter for it.

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

Similar Threads

  1. Replies: 6
    Last Post: 02-19-2013, 03:38 PM
  2. Search using a multi select listbox
    By noobaccess in forum Access
    Replies: 13
    Last Post: 12-04-2012, 07:06 AM
  3. multi select listbox
    By crowegreg in forum Forms
    Replies: 3
    Last Post: 07-28-2012, 01:48 PM
  4. Looping through a multi select listbox - how do I do it?
    By shabbaranks in forum Programming
    Replies: 4
    Last Post: 04-02-2012, 11:56 AM
  5. Replies: 3
    Last Post: 06-22-2011, 08:51 AM

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