Hello,
>> Me.ActiveControl.BackColor = &HFFFF&
This almost does it. I am trying to change the bacground color of a text box that gets focus and reset it back to white when focus leaves it.
The problem I am having with this is that it will set the background color but the same code (with the correct value to for white) does not unset it on the LostFocus event.
It does work if I hard hard both events (text1.BackColor = &HFFFF& etc.)
My goal is offcourse to have one command for changing the BackColor not having to know every controls name.
Any suggestions?
Thanks,
Michael42