troubleshooting Question

Cannot get cursor to move to designated textbox

Avatar of BradleyCleveland
BradleyCleveland asked on
Microsoft Access
6 Comments1 Solution370 ViewsLast Modified:
I have code that runs on the keydown event of a textbox if the key stroke is the Enter key. The problem is that once my code is run I want the focus to come back to this same textbox and the textbox be empty and ready to receive keystrokes again. I can use the SetFocus command and even clear out the text box, but the mouse cursor is still sitting on a different textbox. Using the SelStart option doesn't work either. How do I get the mouse cursor to return to the textbox that is supposed to have the focus?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros