Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to reset multiple text box in a form 1

Status
Not open for further replies.

cctrinh

MIS
Feb 2, 2001
25
US
Hello,

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.

me.textbox1=""

Thank for the help.
 
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
 
Thank you very much. It works perfectly. Nice work.

Calvin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top