Got Focus

M

Mommio2

Could someone please tell me if there is a command I can put in On Got Focus
to make the field "light up" when tabbed to? Thanks!
 
R

Rick Brandt

Mommio2 said:
Could someone please tell me if there is a command I can put in On
Got Focus to make the field "light up" when tabbed to? Thanks!

Me!TextBoxName.BackColor = vbYellow

You would need to use LostFocus to change it back.

An alternative is to make all controls a contrasting color compared to the form
and then set them to transparent. The transparent setting is ignored for the
control with focus so you get automatic highlighting with no code.
 
M

Mommio2

Thanks!!

Rick Brandt said:
Me!TextBoxName.BackColor = vbYellow

You would need to use LostFocus to change it back.

An alternative is to make all controls a contrasting color compared to the
form and then set them to transparent. The transparent setting is ignored
for the control with focus so you get automatic highlighting with no code.
 
Top