A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t
A "Clear Screen" function to clear all your textboxes and comboboxes and checkboxes. Generic code that will work with any form. Using ONLY 6
Rate A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t
(2(2 Vote))
'If you use this code, please email me saying so [email protected]
Dim I as Integer
For I = 0 to Me.Controls.Count-1
If TypeOf Me.Controls(I) Is TextBox Then Me.Controls(I).Text = ""
If TypeOf Me.Controls(I) Is ComboBox Then Me.Controls(I).ListIndex = -1
If TypeOf Me.Controls(I) Is CheckBox Then Me.Controls(I).Value = 0
Next
End Sub
A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t Comments
No comments yet — be the first to post one!
Post a Comment