November 4th, 1999, 02:48 PM
I'm trying to loop through all the text boxes on my form and clear the text property. Here is my code that gets an error. What am I doing wrong?
Dim l_text As TextBox
Dim l_form as frmPCReview 'frmPCReview is the name of my form with the controls
For Each l_text In l_form.Controls
l_text.text = ""
Next
Thanks,
Darin
dvanatta@iname.com
Dim l_text As TextBox
Dim l_form as frmPCReview 'frmPCReview is the name of my form with the controls
For Each l_text In l_form.Controls
l_text.text = ""
Next
Thanks,
Darin
dvanatta@iname.com