Click to See Complete Forum and Search --> : Text


Marnix
October 2nd, 2001, 05:27 PM
Hallo
I want to know if i can set al the txt.boxes and combobox with " " nothing in it in a simple way.
Tnx

MKSa
October 2nd, 2001, 07:47 PM
For TextBoxes set the Text property to "". Ex: TextBox1.Text="". For a ComboBox use the Clear method. Ex: Combo1.Clear.

d.paulson
October 2nd, 2001, 09:01 PM
Dim ctl As Control
For Each ctl In Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
End If
If TypeOf ctl Is ComboBox Then
ctl.Clear
End If
Next


David Paulson