|
-
Jun 18th, 2000, 04:40 PM
#1
Thread Starter
Hyperactive Member
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
-
Jun 18th, 2000, 04:50 PM
#2
Lively Member
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!
-
Jun 18th, 2000, 04:54 PM
#3
Thread Starter
Hyperactive Member
check boxes
No they have'nt each check box is different, can my check boxes return a string.?
-
Jun 18th, 2000, 05:21 PM
#4
PowerPoster
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?
-
Jun 18th, 2000, 05:30 PM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|