Results 1 to 2 of 2
  1. #1
    jevans is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    1

    using listbox selected record to filter the same listbox

    I have a listbox on a form that is filled with people's name, status, jurisdiction, etc. When a row is selected it will display the full person info on the form. What I am wondering is;


    1) is it possible to use the selected row to filter the full list for the jurisdiction? In other words if the selected person's jurisdiction is Florida, can I filter the listbox for all other Florida people using the already selected person's jurisdiction?
    2) if it is possible, how would I go about doing that?


    I've tried using a SELECT statement with the WHERE clause using the column with the jurisdiction in it. No errors occur but the listbox will go blank. A msgbox to show the sql statement returns the statement but the WHERE clause is not showing anything for the jurisdiction.


    Any thoughts on this?


    Thanks...John

  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,822
    Use another listbox. This is called cascading combobox/listbox. Common topic.
    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. ListBox Selected Record
    By bahalzamon in forum Access
    Replies: 4
    Last Post: 08-04-2015, 03:12 PM
  2. Replies: 9
    Last Post: 08-16-2013, 01:49 AM
  3. Replies: 1
    Last Post: 09-10-2012, 11:21 PM
  4. Replies: 3
    Last Post: 02-13-2012, 08:14 AM
  5. Replies: 3
    Last Post: 11-29-2011, 12:54 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