Results 1 to 4 of 4
  1. #1
    Derock is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    2

    Generating a report based on a multi select listbox.

    Not sure if this is where I post this, but here it goes. I am having trouble generating a report based on the selections in a listbox. Right now I have a form that has a combox and listbox on it. I have it setup where I make a selection in the combobox and it outputs that selection to the listbox. I am able to generate a report when I select one item in the listbox, but I want to be able to select multiple items. When I turn on the multi select option for the listbox and select multiple items it does not work. I have looked online for solutions and found some that might work, but the problem is that I am not sure how to manipulate the code to make it work for me. I am not very strong with VBA coding and could use some assistance. Any help would be appreciated. I can send the database if necessary.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    DONT use multi select list box. Instead have a 'pick' table, where the user dbl-clicks items in the list, an append query adds the item to the tPicked table.
    Then to run the report, the query is joined to this 'tPicked' table to pull the selected items. No code.

    The multi list box requires lots of code.
    (see diagram)
    Click image for larger version. 

Name:	pick state-lbl.png 
Views:	15 
Size:	34.2 KB 
ID:	21548

  3. #3
    Derock is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    2
    I don't know if that would work. The list contains about 1500 items. I think that might be a little too much for this.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    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: 7
    Last Post: 11-24-2014, 02:11 PM
  2. Multi-Select Listbox
    By RayMilhon in forum Forms
    Replies: 5
    Last Post: 03-04-2014, 11:54 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. Need Multi-Select listbox code example
    By Buakaw in forum Forms
    Replies: 4
    Last Post: 08-21-2011, 08:37 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