Hepen
asked on
How do you know if a textbox has focus?
How do you know if a textbox has focus?
if form's ActiveControl is the Textbox
Like angelIII said:
if Me.ActiveControl = yourtextbox.name then ...
if Me.ActiveControl = yourtextbox.name then ...
Private Sub Text1_GotFocus()
Debug.Print "getfocus"
End Sub
Debug.Print "getfocus"
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.