Results 1 to 2 of 2

Thread: Searching for unmarked checkboxes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    cardiff
    Posts
    17

    Post

    Is there a way in Vb to search for a specific number of check boxes which are not checked and kept in a database.
    e.g a prompt which uyou type in the number of boxes to search for then vb shows them.

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Post

    If your checkboxes are in an array, then it should be easy. Here's what I did:

    Create a new project with a command button, four checkboxes in an array, and a list box. insert this code.

    Code:
    Private Sub Command1_Click()
    List1.Clear
    For x = 0 To 3
    If Check1(x).Value = 0 Then
    List1.AddItem (x)
    End If
    Next x
    End Sub
    it checks all the checkboxes to see if it's checked and adds those that aren't to a list.

    good luck,

    bob

Posting Permissions

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



Click Here to Expand Forum to Full Width