Which Control has the Focus?

  • Thread starter Thread starter Aaron E via AccessMonster.com
  • Start date Start date
A

Aaron E via AccessMonster.com

Is there a way to get a reference to whatever control has the focus?
 
Aaron said:
Is there a way to get a reference to whatever control has the focus?


If you are in the same form as the control, then use

Me.ActiveControl

otherwise

Forms!someform.ActiveControl
 
Thanks

Marshall said:
If you are in the same form as the control, then use

Me.ActiveControl

otherwise

Forms!someform.ActiveControl
 

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