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
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