sales@scantechintl.com
Registered User.
- Local time
- Today, 16:19
- Joined
- Oct 31, 2000
- Messages
- 24
Hi,
In a subform, where several records are displayed, I would like to change the background color for the current control in the current record.
I tried the following:
---On Enter---
Private Sub Job_Enter()
ActiveControl.BackColor = Yellow
End Sub
---On Exit---
Private Sub Job_Exit(Cancel As Integer)
ActiveControl.BackColor = White
End Sub
The problem is that it changes the color for the control in all of the displayed records in the sub form.
Is it possible to limit it to the current or active record only?
John
In a subform, where several records are displayed, I would like to change the background color for the current control in the current record.
I tried the following:
---On Enter---
Private Sub Job_Enter()
ActiveControl.BackColor = Yellow
End Sub
---On Exit---
Private Sub Job_Exit(Cancel As Integer)
ActiveControl.BackColor = White
End Sub
The problem is that it changes the color for the control in all of the displayed records in the sub form.
Is it possible to limit it to the current or active record only?
John