hi all,
i'm trying to look through a group of checkboxes to see if any of them have been checked. if ANY have been checked then i would like to make the value of the CheckBox_p2b true.
word2000 document
p2b (controls the subtitle on the document)
p2b1 (bullet point1 on doc)
p2b2 (bullet point2 on doc)
etc.
this only works if the first item under p2b (p2b1) is selected on the form. i'm sure there is a better way to do this.
thanks!
i'm trying to look through a group of checkboxes to see if any of them have been checked. if ANY have been checked then i would like to make the value of the CheckBox_p2b true.
word2000 document
p2b (controls the subtitle on the document)
p2b1 (bullet point1 on doc)
p2b2 (bullet point2 on doc)
etc.
Code:
Dim a As Long
a = 1
If me.Controls("CheckBox_p2b" & a).Value = True Then
Do Until a = 26
CheckBox_p2b.Value = True
a = a + 1
Loop
End If
this only works if the first item under p2b (p2b1) is selected on the form. i'm sure there is a better way to do this.
thanks!