Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Highlight control only in current record

$
0
0
I have a continuous form and to help user's eyes am highlighting the control that is active using the code in GotFocus and LostFocus events:

Private Sub Highlight()
On Error Resume Next
Me.ActiveControl.BackColor = vbYellow
End Sub

Private Sub UnHighlight()
On Error Resume Next
Me.ActiveControl.BackColor = vbWhite
End Sub

The problem to be solved is having only the Control in the Current Record highlighted, not that control in all records visible.
I tried the following and it doesn't compile:
Me.CurrentRecord.ActiveControl.BackColor

Thanks,
Pete

Viewing all articles
Browse latest Browse all 13329

Trending Articles