clearalltextboxes
|
|
Clear All TextBoxes In A Form
Clear All TextBoxes In A Form
'Add 1 CommandButton and few TextBoxes To Your Form.
'Insert the following code to your form:
Private Sub Command1_Click()
Dim Contrl As Control
For Each Contrl In Form1.Controls
If (TypeOf Contrl Is TextBox) Then Contrl.Text = ""
Next Contrl
End Sub
| |
|
|
|