I have the following funtion:
Function Color()
On Error Resume Next
Dim ctl As Control
Set ctl = Me.ActiveControl
If ctl.BackColor = 16777215 Then
ctl.BackColor = 14211021
Else
ctl.BackColor = 16777215
End If
End Function
The event is fired on the GotFocus and LostFocus
How can I use this same function to bold the label of the control that has the focus.
Function Color()
On Error Resume Next
Dim ctl As Control
Set ctl = Me.ActiveControl
If ctl.BackColor = 16777215 Then
ctl.BackColor = 14211021
Else
ctl.BackColor = 16777215
End If
End Function
The event is fired on the GotFocus and LostFocus
How can I use this same function to bold the label of the control that has the focus.