Hallo
I want to know if i can set al the txt.boxes and combobox with " " nothing in it in a simple way.
Tnx
Printable View
Hallo
I want to know if i can set al the txt.boxes and combobox with " " nothing in it in a simple way.
Tnx
For TextBoxes set the Text property to "". Ex: TextBox1.Text="". For a ComboBox use the Clear method. Ex: Combo1.Clear.
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