Results 1 to 5 of 5
  1. #1
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86

    Multi Value Selection without using lookup wizard


    I have a database that people submit ideas to. A list box lets them choose their name from another table with all the employees names. The idea might come from more than one person so I want to be able to pick more than one person. I can see how you do it using the look up wizard but I want to avoid it as that causes problems. How do I go about making that possible without using the look up wizard?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    multi-select list boxes require a lot of vb code.
    OR
    you can use a single select list box that adds the user picks to a 'picked' table (append query on the dbl-click)
    then once all the picks are made , then in a select query, the tPicked table is joined to the data table to produce the results .
    No code, 2 queries.

  3. #3
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86
    Sounds good but I am unsure how to accomplish what you have described. If you have time could you provide a more detailed set of instructions. Thank you,

    Quote Originally Posted by ranman256 View Post
    multi-select list boxes require a lot of vb code.
    OR
    you can use a single select list box that adds the user picks to a 'picked' table (append query on the dbl-click)
    then once all the picks are made , then in a select query, the tPicked table is joined to the data table to produce the results .
    No code, 2 queries.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    caniread,

    Can you tell us in 4 -5 lines what the "business" is in plain English?
    Also can you show readers your table design(s)?

    I see Employee and Idea. You probably have some Category, Class or Type of Idea, and perhaps some descriptive text (or some standard terms of which 1 or more can be associated with an Idea).

    It is important to get your tables and relationships designed to meet your business needs before getting too far into forms etc.

    One or more Employee(s) can submit 1 or more Ideas

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Storing multiple pieces of like data, in a single field, is generally frowned upon, but for something like this is probably OK. In the below, replace YourComboBox and TargetTextBox with the actual names of your Controls:
    Code:
    Private Sub YourComboBox_AfterUpdate()
     If IsNull(Me.TargetTextBox) Then
       Me.TargetTextBox = Me.YourComboBox
     Else
       Me.TargetTextBox = Me.TargetTextBox & ", " & Me.YourComboBox
      End If
     End Sub

    Linq ;0)>

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

Similar Threads

  1. lookup wizard help
    By Delta729 in forum Access
    Replies: 1
    Last Post: 01-01-2015, 02:22 PM
  2. Replies: 5
    Last Post: 04-09-2014, 06:57 PM
  3. LOOKUP WIZARD, is it possible?
    By finsmith in forum Programming
    Replies: 5
    Last Post: 01-24-2013, 09:45 AM
  4. lookup wizard
    By dafdek in forum Access
    Replies: 1
    Last Post: 01-10-2013, 04:57 PM
  5. Lookup wizard
    By VLI in forum Forms
    Replies: 7
    Last Post: 01-28-2011, 09:25 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