Results 1 to 5 of 5
  1. #1
    mesba713 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2015
    Posts
    5

    List multiple value in query

    Hello Everyone,
    I hava a newbee question. I have a list in a form where the user can select multiple values. The list” Projekte” is based on the table “Projekte”.

    I want to be able after the user selects multiple values from the list to use them in a query to show the respectful records.


    For example if the user selects Project 1 and Project 2. I want to show the records where there are either Project 1 or Project 2.
    Is that possible without VB as I have no knowledge of VB.

    Thanks in advance

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    No that is not possible without VB. The multi select list box is not easily use-able as the criteria for a query. Partially of course because for a query it would be unclear whether the multiple options should be AND or OR which of course changes the query results dramatically. Rather that a multi select list box one instead needs to use a sub form of a table/query as well as have a check box field. With this type of set up one can establish multiple values that would be useable in a query.

  3. #3
    mesba713 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2015
    Posts
    5
    Thanks for the quick answer. I tried it actually with checkboxes and wasnt more succesfull. Can you please elaborate on how to do it in this case ?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

  5. #5
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    * there would be a sub form, probably continuous, and that would have a check box field - with the ones you want checked
    * then you can do a query of that table for 'All Checked'
    * one can then make a query that joins the 'All Checked' to the table(s) with the data you want to see; this is your final record set
    * one must run an update query to then clear those check boxes

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

Similar Threads

  1. Replies: 1
    Last Post: 04-21-2014, 08:00 AM
  2. Replies: 7
    Last Post: 07-11-2013, 10:05 AM
  3. List Box Multiple Selection Against Query
    By fionny in forum Queries
    Replies: 3
    Last Post: 06-28-2013, 12:12 PM
  4. Replies: 7
    Last Post: 06-20-2013, 12:09 PM
  5. Query from Multiple List Boxes
    By Gee in forum Access
    Replies: 1
    Last Post: 02-14-2013, 10:42 PM

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