R
rocco
Hello,
I have a form with many controls of different type.
I'm building a procedure to clean the value of any controls.
This is what I wrote:
---------
Dim ctl As Control
Dim i As Integer
For Each ctl In Me.Controls
For i = 0 To Me.Controls(ctl.name).Properties.Count - 1
If Me.Controls(ctl.name).Properties(i).Name = "Value" Then
ctl.Value = Null
Exit For
End If
Next
Next
-----------------
It runs...but doesn't do anything.
I checked it against a combobox and it has come out it never finds the value
property iterating the collection.
How could this happen?
Thanks,
Rocco
I have a form with many controls of different type.
I'm building a procedure to clean the value of any controls.
This is what I wrote:
---------
Dim ctl As Control
Dim i As Integer
For Each ctl In Me.Controls
For i = 0 To Me.Controls(ctl.name).Properties.Count - 1
If Me.Controls(ctl.name).Properties(i).Name = "Value" Then
ctl.Value = Null
Exit For
End If
Next
Next
-----------------
It runs...but doesn't do anything.
I checked it against a combobox and it has come out it never finds the value
property iterating the collection.
How could this happen?
Thanks,
Rocco