R
RobUCSD via AccessMonster.com
With the code below I'm looping through my form's txtBox controls and tags.
If the control is a txtBox and has the tag of GrpA then I want those controls
to not be enabled. problem is, it doesn't work.
How can I test for multiple conditions and then change the control's
properites.
thanks, Rob
**********************************************************************************************************
For Each ctl In Me
If ctl.ControlType = acTextBox And ctl.Tag = "GrpA" Then
ctl.Enabled = False
End If
Next ctl
If the control is a txtBox and has the tag of GrpA then I want those controls
to not be enabled. problem is, it doesn't work.
How can I test for multiple conditions and then change the control's
properites.
thanks, Rob
**********************************************************************************************************
For Each ctl In Me
If ctl.ControlType = acTextBox And ctl.Tag = "GrpA" Then
ctl.Enabled = False
End If
Next ctl