Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    10

    Question Unanswered: Selecting all the Listview information using selectall function

    i simple want when user click on the select all checkbox.all the checkboxes of list view should be filled with check sign.which is working fine.but problem is that when user click again on the checkbox .checksign still stay there.kindly let me know the idea any help would be highly appreciated.
    Code:
    Private Sub Check1_Click() 
    Call SelectAll 
    End Sub 
    Private Function SelectAll() As Boolean 
        Dim Item As listitem 
    
        For Each Item In ListView1.ListItems 
            Item.Checked = True 
        Next 
      
        SelectAll = True 
    End Function
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    All the check boxes remain checked because you are always setting Item.Checked = True.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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