4 Replies - 3254 Views - Last Post: 09 June 2011 - 09:34 PM

#1 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Clear All Text Boxes

Posted 13 May 2009 - 03:13 AM

Description: Clears all textboxes within a form.
Dim txtbox As Control
    For Each txtbox In Controls
        If TypeOf txtbox Is TextBox Then txtbox.Text = ""
    Next txtbox

Is This A Good Question/Topic? 0
  • +

Replies To: Clear All Text Boxes

#2 green_roses_5451   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-August 09

Re: Clear All Text Boxes

Posted 16 September 2009 - 01:29 AM

nice
Was This Post Helpful? 0
  • +
  • -

#3 DON RIKO   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 30-October 10

Re: Clear All Text Boxes

Posted 30 October 2010 - 08:52 PM

Works like a charm. Thanks
Was This Post Helpful? 0
  • +
  • -

#4 MikeDodgers   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 23-May 11

Re: Clear All Text Boxes

Posted 23 May 2011 - 02:34 PM

Short and sweet.
Was This Post Helpful? 0
  • +
  • -

#5 Dialga   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 49
  • Joined: 13-May 11

Re: Clear All Text Boxes

Posted 09 June 2011 - 09:34 PM

so the name of the textbox is txtbox? why is
For each txtbox in controls
invalid procedure?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1