S
ScottS
Hello,
I am trying to write a function that will clear all the text boxes in a form
and have been having trouble getting the following code to run:
Dim ctl as Control
For Each ctl in Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = Null
End IF
Next ctl
For one thing, I am not seeing ControlType or Value as a member of Control
so I suspect this as the main problem. Am I missing a refence? Is there a
better way to do this?
Thanks,
Scott S
I am trying to write a function that will clear all the text boxes in a form
and have been having trouble getting the following code to run:
Dim ctl as Control
For Each ctl in Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = Null
End IF
Next ctl
For one thing, I am not seeing ControlType or Value as a member of Control
so I suspect this as the main problem. Am I missing a refence? Is there a
better way to do this?
Thanks,
Scott S