LARiot
Programmer
- Feb 7, 2007
- 232
Hi. Thanks for looking into this.
As with any thread, please only reply after reading carefully. Also only if you are sure of the correct answer. No one likes to read a bunch useless posts before getting to the right answer. Especially when they have to read more than one post.
In the OnExit event of a text box I have the following:
However, the following textbox gets the focus when the user tabs to another control. What's probably happening is that the txtJobNumber does get the focus then vba goes back to what it was going to do and changes the focus to the next control on tab index sequence.
How do I set the focus back to txtJobNumber from it's own event?
-Nima
"Pluralitas non est ponenda sine necessitate", i.e., "Plurality is not to be posited without necessity" aka K.I.S.S. (Keep It Short and Simple) -- Ockham's Razor
As with any thread, please only reply after reading carefully. Also only if you are sure of the correct answer. No one likes to read a bunch useless posts before getting to the right answer. Especially when they have to read more than one post.
In the OnExit event of a text box I have the following:
Code:
Me.txtJobNumber.SetFocus
However, the following textbox gets the focus when the user tabs to another control. What's probably happening is that the txtJobNumber does get the focus then vba goes back to what it was going to do and changes the focus to the next control on tab index sequence.
How do I set the focus back to txtJobNumber from it's own event?
-Nima
"Pluralitas non est ponenda sine necessitate", i.e., "Plurality is not to be posited without necessity" aka K.I.S.S. (Keep It Short and Simple) -- Ockham's Razor