Access List box DblClick should expand the item values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johny6685
    New Member
    • Dec 2014
    • 66

    Access List box DblClick should expand the item values

    Hi

    I have a listbox in my form which will show list of field names in a table. If the user double click on one of the field say for example Location, the list box should reload the data with Location field unique data. such as USA, UK, INDIA, etc...

    This is similar to our explorer side bar view which expands the folder on selection.

    Please confirm is this possible with MS Access.

    Thanks
    Last edited by johny6685; Feb 19 '15, 09:17 PM. Reason: correction
  • Stewart Ross
    Recognized Expert Moderator Specialist
    • Feb 2008
    • 2545

    #2
    Not possible with list box control, but you could try using the treeview control instead. It is more complex to use (you need to load it via code - see for example http://bytes.com/topic/access/answer...eeview-control).

    -Stewart

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      It's possible with a listbox. In the double click event, you just build dynamic SQL to reload the listbox. But it probably looks nicer and takes less code with the treeview control.

      Comment

      • johny6685
        New Member
        • Dec 2014
        • 66

        #4
        Thank you both, I already tried as Rabbit stated, I opened the sub selection in a new floatting pane which will pop-up on double click but I think Tree view suggestion is what I expected. Let me try and get back if I have some questions. Thanks.

        Comment

        Working...