determine if a field is in focus

  • Thread starter Thread starter Phil Hellmuth
  • Start date Start date
P

Phil Hellmuth

In a form's event, I want to determine if a particular field is in
focus. Any suggestions on how to do this?

Thanks in advance.
 
Phil

You can use the ActiveControl.Name property for this:

If Me.ActiveControl.Name = "YourControlName" Then.....
 
Back
Top