H
HumanJHawkins
I am trying to set all controls visible, unlocked, and enabled, as the
baseline for disabling or locking down some fields based on other
criteria. Here's what I tried, which gives me an "Invalid or
unqualified reference" error:
Function SetEnabledFieldsBase()
Dim ctl As Control
For Each ctl In Me.Controls
.Enabled = True
.Visible = True
.Locked = False
Next ctl
End Function
I based this on several examples that were intended to do something to
all text boxes on a form. (I have never done this before, so sorry if
this is just really bad syntax.)
Thanks!
baseline for disabling or locking down some fields based on other
criteria. Here's what I tried, which gives me an "Invalid or
unqualified reference" error:
Function SetEnabledFieldsBase()
Dim ctl As Control
For Each ctl In Me.Controls
.Enabled = True
.Visible = True
.Locked = False
Next ctl
End Function
I based this on several examples that were intended to do something to
all text boxes on a form. (I have never done this before, so sorry if
this is just really bad syntax.)
Thanks!