Hi Group:
I'd like to highlight the current controls label on the got focus event without putting code into each controls got focus event. Any ideas?? I'm currently using the following for the data input fields but I don't think this logic will apply to labels
Dim ctl2 As Control
For Each ctl2 In Me.Controls
Select Case ctl2.ControlType
Case acComboBox, acTextBox
If (ctl2.Tag = 1) Then
ctl2.Enabled = False
ctl2.BackColor = 16777215
ctl2.Locked = True
ctl2.SpecialEffect = 0
ctl2.TabStop = True
End If
End Select
Next ctl2
I'd like to highlight the current controls label on the got focus event without putting code into each controls got focus event. Any ideas?? I'm currently using the following for the data input fields but I don't think this logic will apply to labels
Dim ctl2 As Control
For Each ctl2 In Me.Controls
Select Case ctl2.ControlType
Case acComboBox, acTextBox
If (ctl2.Tag = 1) Then
ctl2.Enabled = False
ctl2.BackColor = 16777215
ctl2.Locked = True
ctl2.SpecialEffect = 0
ctl2.TabStop = True
End If
End Select
Next ctl2