L
lmcc via AccessMonster.com
I am trying to highlight a selected record of a continuous form. Conditional
Formatting is not working because it highlights individual fields. If
Conditional Formatting would highlight the entire row, it would be perfect.
I created a txtBackground text box to size of all my fields, sent it the
back—behind the fields. Use the txtBackground as the control, but when it
has focus it covers the data. Below is the code I used:
Sub HighlightControl(ctl As Control)
On Error Resume Next
ctl.BackColor = 65535
End Sub
Sub UnhighlightControl(ctl As Control)
On Error Resume Next
ctl.BackColor = 16777215
End Sub
Private Sub txtBackground_GotFocus()
HighlightControl Me.txtBackground
End Sub
Private Sub txtBackground_LostFocus()
UnHighlightControl Me.txtBackground
End Sub
Any suggestions is appreciated. Thanks!
Formatting is not working because it highlights individual fields. If
Conditional Formatting would highlight the entire row, it would be perfect.
I created a txtBackground text box to size of all my fields, sent it the
back—behind the fields. Use the txtBackground as the control, but when it
has focus it covers the data. Below is the code I used:
Sub HighlightControl(ctl As Control)
On Error Resume Next
ctl.BackColor = 65535
End Sub
Sub UnhighlightControl(ctl As Control)
On Error Resume Next
ctl.BackColor = 16777215
End Sub
Private Sub txtBackground_GotFocus()
HighlightControl Me.txtBackground
End Sub
Private Sub txtBackground_LostFocus()
UnHighlightControl Me.txtBackground
End Sub
Any suggestions is appreciated. Thanks!