Results 1 to 7 of 7
  1. #1
    nickmit11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    9

    Multi-Value ComboBox on Form - Used as Criteria in Query for a Report

    In the current database I designed, I have a form with an unbound combobox. This combobox serves as the criteria for a Query that then feeds a Report. It is simple, efficient, and works very well.



    My superior would like for this combobox to allow for multiple selections so that when the report is produced more than one selection would show on the report, instead of running the report two different times.

    So far I am able to produce an unbound combobox that allows for multiple selections that populate (separated by commas) in the combo box. I think the next step is to get the Query to read the multi-value selection but I am unsure how to get the Query to do this. Is this something that has to be done through SQL, VBA, a combination, or is it as simple as criteria in the Query? If it is impossible I would definitely like to know that too! Any insight is greatly appreciated!!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    What you describe is normally done with a multi-select listbox and it does require VBA. Review http://allenbrowne.com/ser-50.html
    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.

  3. #3
    nickmit11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    9
    Thanks for the link! Is it still possible to do it using a combobox? Or is it solely compatible with a multi-select listbox.

  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,902
    I don't even know how you get an UNBOUND multi-select combobox. AFAIK, must be associated with a multi-value field. I don't use multi-value fields.
    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.

  5. #5
    nickmit11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    9
    Doubling back I was incorrect about it being UNBOUND. It is linked to a multi-value column on a table. However this multi-value column's sole purpose is to store what is selected from the combo box on the form, it does not store more than one instance of what is selected in the combo box, i.e. it is always changing whenever the combo box changes. Is that making sense or not really?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Okay, sounds like you need a better understanding of what a multi-value field is and how to use the data saved in that field. https://support.office.com/en-us/art...C-6DE9BEBBEC31

    Is this a multi-user split database? Multiple users will conflict with each other changing the values in that field.
    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.

  7. #7
    nickmit11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    9
    I've definitely never encountered anything like this before so you are right, thanks for the additional link.

    This is indeed a multi-user split database.

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

Similar Threads

  1. Multi Search Criteria Form/Query
    By NickWren in forum Access
    Replies: 4
    Last Post: 10-04-2016, 05:42 PM
  2. Replies: 1
    Last Post: 01-16-2015, 09:28 AM
  3. Replies: 1
    Last Post: 10-29-2014, 10:23 AM
  4. Replies: 4
    Last Post: 09-23-2014, 08:39 AM
  5. Replies: 3
    Last Post: 12-08-2011, 10:52 AM

Tags for this Thread

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