Results 1 to 2 of 2
  1. #1
    CharbelKahi is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Posts
    1

    how to de-select items in a listbox

    i have a populated listbox, after i selected a record, i want programmatically to cancel the selected items. how can i do this?

    thks


    Charbel

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    loop through the list box items and set the Selected property to false
    Code:
     For k = 0 To lstBox.ListCount - 1
    lstBox.Selected(k)=False
    Next k

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

Similar Threads

  1. Tallying a listbox's items
    By lyrasphere in forum Access
    Replies: 3
    Last Post: 05-22-2014, 08:12 AM
  2. Replies: 2
    Last Post: 05-21-2014, 01:16 PM
  3. Replies: 12
    Last Post: 01-08-2014, 05:15 PM
  4. Replies: 8
    Last Post: 05-24-2011, 03:41 PM
  5. Selected items in listbox
    By tomodachi in forum Access
    Replies: 1
    Last Post: 09-09-2010, 01:14 PM

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