Hey guys,
How one control test if another control on my form has focus?
Hey guys,
How one control test if another control on my form has focus?
If Me.[ControlName] some test Then
Some action
End If
Providing the controls are on the same form.
Soo... what would this "some test" be?
I know how to reference a control, i need to know how to test if it has focus.
Thanks
Mikw
Try ..
[VBA]If Me.ControlName Is Me.ActiveControl Then[/VBA]
Enjoy,
Tony
---------------------------------------------------------------
Give a man a fish and he'll eat for a day.
Teach him how to fish and he'll sit in a boat and drink beer all day.
I'm (slowly) building my own site: www.WordArticles.com