Psycho_NZ
Oct 3rd, 2005, 05:17 PM
Hello
I have a text box, lets call it txtBob. When the user enters something in txtBob and leaves the field I have some validation that checks the data is good.
What I want... is when the data is not good, a message comes up saying "Bad data BAD", I've got this far. Then I also want the cursor to stay in that box (i.e. not tab to the next text box).
I tried putting it on the exit sub for txtBob, but then unfortunately it becomes stuck in that box (i.e. the user cant click the cancel because it keeps checking the text box).
Is there a way, I can have the message and cursor stay in txtBob, while still allowing the user to click into another field/button.
Thanks heaps for you help
Ange
I have a text box, lets call it txtBob. When the user enters something in txtBob and leaves the field I have some validation that checks the data is good.
What I want... is when the data is not good, a message comes up saying "Bad data BAD", I've got this far. Then I also want the cursor to stay in that box (i.e. not tab to the next text box).
I tried putting it on the exit sub for txtBob, but then unfortunately it becomes stuck in that box (i.e. the user cant click the cancel because it keeps checking the text box).
Is there a way, I can have the message and cursor stay in txtBob, while still allowing the user to click into another field/button.
Thanks heaps for you help
Ange