I am trying to clear unbound textboxes. I use the code below to hide certain textboxes and labels but cannot find a way to just clear them.
For Each ctl In Me.Controls
If ctl.Tag = "?" Then
ctl.Visible = False
End If
Next
What I want is something like ctl=""
Can it be done? Obviously only textboxes will be tagged for clearing, ie where tag = ??
Thanks
For Each ctl In Me.Controls
If ctl.Tag = "?" Then
ctl.Visible = False
End If
Next
What I want is something like ctl=""
Can it be done? Obviously only textboxes will be tagged for clearing, ie where tag = ??
Thanks