Can someone give me some help to reset multiple text box in a form. I know you can use the following code to reset one box but not multiple boxes. Are there any build in function to handle multiple text box.
Try this:
[tt]
Dim ctlTemp as Control
For Each ctlTemp in Me.Controls
If ctlTemp.ControlType = acTextBox Then
ctlTemp.Value=""
End If
Next ctlTemp[/tt] Jonathan
________________________________________
It is not fair to ask of others what you are unwilling to do yourself.
-Eleanor Roosevelt
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.