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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All Textboxs on form set to Null

Status
Not open for further replies.

DUF

Technical User
Mar 10, 2001
107
IE
Hi,
On the On Load event of an form I want all the textboxs to be set to null
I tryed the following code but it will not work maybe someone can tell me what is wrong?

Dim ctl as Control
For Each ctl In Me.Controls
If ctl.Controle type acTextBox Then
ctl = Null
Next ctl

thanks

Duf

 
If ctl.ControlType = acTextBox Then =============
Jeremy Wallace
Designing, Developing, and Deploying Access Databases Since 1995

Take a look at the Developers' section of the site for some helpful fundamentals.
 
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl = Null
End If
Next ctl Remember amateurs built the ark - professionals built the Titanic

[yoda]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top