Results 1 to 5 of 5
  1. #1
    echecket is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    3

    Populating a listbox from another multiselect listbox AfterUpdate event

    I'm new here, so I apologize if I'm asking a question that's been asked a million times or violating forum norms. Here's my question:

    I currently have 2 listboxes, listA and listB. listB has a query as a rowsource, filtered based off the value of the record selected in listA. That works great and all, but I need to set both listboxes as 'extended multiselect'. For the sake of easy explanation, lets say that listA provides a list of states, and listB provides a list of cities. I want the user to have the option of selecting 'Arizona', 'Nevada', and 'New York' in listA, for example, and have listB show all the cities that correspond to those states.

    I saw other threads that deal with multiselect, but they didn't really seem to address what I'm trying to accomplish. Where do I go from here?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'd combine the second method here:

    http://www.baldyweb.com/CascadingCombo.htm

    with the looping code to build an In() clause here:

    http://www.baldyweb.com/multiselect.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    echecket is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    3
    Thanks, pbaldy! I'm working on your advice right now, but struggling to understand how the two should go together. In the meantime, if you have any suggestion for merging the two, I'd be very grateful.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sorry, busy weekend. Did you get it sorted out? If not, what do you have so far?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    echecket is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    3
    Hey there,

    Sorry I didn't respond. I have been out of the office since the last time I posted. I haven't really been able to figure it out yet. Still tinkering . . .

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

Similar Threads

  1. Multiselect Listbox
    By wwhit in forum Forms
    Replies: 19
    Last Post: 03-09-2015, 02:58 PM
  2. Replies: 4
    Last Post: 02-14-2013, 09:33 PM
  3. Listbox multiselect status
    By Sam23 in forum Programming
    Replies: 5
    Last Post: 03-06-2012, 01:13 PM
  4. multiselect listbox - search result problem
    By svartisya in forum Forms
    Replies: 4
    Last Post: 11-29-2011, 07:17 AM
  5. Append Records using MultiSelect Listbox
    By Ted C in forum Programming
    Replies: 14
    Last Post: 03-15-2011, 01:25 PM

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