Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Check Boxs

Hi all,

In my form i have say 10-15 check boxes, and 5 text boxes,

To clear the text boxes i use the floowing code:

Private Sub ClearTextBoxes()
Dim ctl As Control

' Clear all the TextBoxes on the form.
For Each ctl In Controls
If TypeOf ctl Is TextBox Then ctl.Text = ""
Next ctl
End Sub

I am stuck on how to go about clearing al the checkboxes once the user presses save
[467 byte] By [mp_direct] at [2007-11-11 7:13:43]
# 1 Re: Check Boxs
If TypeOf ctl Is CheckBox Then ctl.Value = vbUnchecked
Phil Weber at 2007-11-11 17:27:21 >
# 2 Re: Check Boxs
Thanks Phil,
mp_direct at 2007-11-11 17:28:22 >