johnroger
02-28-2002, 04:59 PM
Hello,
As I tab through a form, how can I change the color of the control that has just received the focus.
John
naygl
02-28-2002, 07:14 PM
Try the OnGotFocus property of the control. Add code which will change the backcolour such as:
Me.Combo5.BackColour = 255
Then use the onLostFocus property to return it to its normal colour.
SimonC
03-01-2002, 07:21 AM
As an alternative, if you're running Access 2000 or later, you could use Conditional Formatting.
In Form Design mode, select the control you want to highlight from the menu select Format -> Conditional Formatting. Select "Field Has Focus" as the condition and then set the appropriate formatting properties.
Simon.
johnroger
03-02-2002, 03:49 AM
Hello Simon,
That's what I needed.
Thank you very much.
John R.