Results 1 to 4 of 4
  1. #1
    ahmad_3011 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    13

    Multivalue listbox filter

    I have a form called Clients that contains two multivalue listbox I can chose from the city list more than one city I need to show the districts on the other city that matches with the selected cities
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    This is not a good way. It requires a lot of code.
    INSTEAD,
    how about a single pick list in a listbox. User dbl-clicks from the list, which runs an append query, and puts this option in a 'pick list' table.

    Items to pick FROM are in a source table,
    items the user picks are put in the TARGET tPicked table
    The query joins the tPicked table to the Data table.

    NO CODING, just a few queries.
    1 append query to add the user's pick
    1 del query to erase only 1 selected item in the list
    1 del query to erase all items in the list

  3. #3
    ahmad_3011 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    13

    Thank you

    ranman256

    thank you for the idea, kindly do this to the attached file

  4. #4
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    your tables are not designed correctly using normalization.
    you should have a sub table:

    clientID, city

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

Similar Threads

  1. Filter listbox date with optionbutton.
    By Paowtrick in forum Queries
    Replies: 6
    Last Post: 11-05-2018, 04:29 PM
  2. Replies: 9
    Last Post: 06-17-2017, 09:39 PM
  3. Replies: 1
    Last Post: 05-21-2017, 12:31 AM
  4. Listbox filter
    By Brightspark98 in forum Forms
    Replies: 3
    Last Post: 01-31-2017, 12:39 AM
  5. Filter a form using a listbox
    By jrosen12 in forum Forms
    Replies: 3
    Last Post: 03-23-2015, 07:44 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