Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    18

    Red face Unanswered: MSAccess 2002-Lisbox selected Count

    How do I get count of selected Items in my Listbox in a form in Access 2002 because
    ListName.ItemSelected.count gives me zero value everytime and I got frustrated about how to find count as this works fine in access 97
    Please guide me
    Thanking you in your anticipation

  2. #2
    Join Date
    Feb 2004
    Location
    Dorset UK
    Posts
    147
    Something like


    Ctr=0

    For A = 0 To My_Listbox_List.ListCount - 1
    If Me.My_Listbox_List.Selected(A) = True Then Ctr = Ctr +1
    Next


    Ctr = all selected items

    Try that, there might be a better way, but off the top of my head I can't think of one..

    Ken

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •