i have about 60 text box's on a form and i dont want to clear each one manually on refresh
text1.text = "" kind of thing
I know there is a way to do something like for every control on form1 text = "" or something ...
Thanks
Brooke
Printable View
i have about 60 text box's on a form and i dont want to clear each one manually on refresh
text1.text = "" kind of thing
I know there is a way to do something like for every control on form1 text = "" or something ...
Thanks
Brooke
Try:
Code:For Each Control In Me
If TypeOf Control Is Textbox Then Control.Text = ""
Next
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Worked great thanks.
Thank you for this code... Though i have code, i think this is good to my old one...