Results 1 to 4 of 4
  1. #1
    Stika is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    18

    Multiple Listboxs

    Hi,



    Currently I have a combobox which populates a list box based on the selection of the combobox.

    I was wondering if it was possible to have a multi selection listbox where I can select and populate the 2nd listbox based on the values I select in the first list box?

    Ill give you my example
    Combobox - Select A Carrier here

    Listbox - Populated with all the orders for the carrier selected in Combobox

    What I would Like to do
    Listbox1 - Select more then 1 Carrier

    Listbox 2 - Populate with all the orders from Carriers selected in Listbox 1

    Is it possible?

    Im using access 2010 btw

  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,652
    It's possible, but a little more complicated. You can adapt this to build an SQL string for the second listbox.

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

  3. #3
    Stika is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    18
    Am I able to do it without having to save the selected items to a table?

  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,652
    Sure; the method posted does not save the selected items. It simply builds the WHERE portion of an SQL string.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 22
    Last Post: 12-29-2015, 10:41 PM
  2. Replies: 12
    Last Post: 12-17-2012, 12:47 PM
  3. Replies: 1
    Last Post: 08-25-2012, 06:11 PM
  4. Multiselect Listboxs
    By wwhit in forum Programming
    Replies: 3
    Last Post: 02-13-2012, 02:55 PM
  5. Replies: 23
    Last Post: 12-06-2011, 09:18 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