Got Focus

  • Thread starter Thread starter Mommio2
  • Start date Start date
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!
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top