|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Want the textfields to be blank when a form is loaded
Hi All,
I have a form which has bound textfields on it. When the form is displayed for the first time, it shows the data from the tables in the textfields. But I want the textfields to be blank when they first appear. Whenever I do sthg like.....this Private Sub Form_Load() Me.Name.Value = "" End Sub It clears the first row of data from my tables. I dont want this. Please Help. Thanks in advance. |
|
#2
|
||||
|
||||
|
Try something like this
Code:
Dim ctrl As control
For each ctrl in Me.Controls
If TypeOf ctrl = textbox Then
ctrl.text = ""
End If
Next
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Want the textfields to be blank when a form is loaded |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|