PDA

Click to See Complete Forum and Search --> : Clearing all textboxs on a form


BHostmeyer
Nov 4th, 1999, 03:33 AM
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

Aaron Young
Nov 4th, 1999, 03:48 AM
Try:

For Each Control In Me
If TypeOf Control Is Textbox Then Control.Text = ""
Next



------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

BHostmeyer
Nov 4th, 1999, 03:57 AM
Worked great thanks.