Results 1 to 5 of 5

Thread: check boxes

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Question

    Is it possible to use one check box to select all other check boxes, i would like a select all option.. any ideas.?

    Many thanks

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    84
    It's easy when all your checkboxes got the same name, just diffenent indices (chkOptions(0),chkOptions(1),... ).

    Code:
    Private Sub chkAll_Click()
       Dim i, number_of_options As Integer
       number_of_options = 8 
       
       If chkAll.Value = vbChecked Then
          For i = 0 To (number_of_options - 1)
             chkOptions(i).Value = vbChecked
          Next i
       End If
    End Sub
    hope this helps!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Unhappy check boxes

    No they have'nt each check box is different, can my check boxes return a string.?

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb

    can not catch you try to describe.
    No they have'nt each check box is different, can my check boxes return a string.?
    What do you aspect the CheckBox return to your application?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Exclamation check boxes

    Here's the scenario:

    cust1 (check box)
    cust2 (check box)
    etc

    I would like the check box if checked return a string value.. is there a better way then...

    if cust1 = 1 then
    tstring = "whatever"
    end if

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