Hi folks,
I am back again. I want to validate the text that someone enters in a text box. In the valid event of the textbox, I seek whether the code someone has entered exists in a table. If it doesn't exist, I inform the user. Now, I want the cursor to remain in this text box until someone either enters a valid code or leaves the text box empty (necessary for exiting purposes). In the Valid event, I have tried to setfocus to the same textbox (this.setfocus) but it raises an error to the effect that you can't Setfocus from within a Valid event.... What do I do to ensure that the cursor remains in this textbox until someone enters a valid code ?
Thanx,
Peterson.
I am back again. I want to validate the text that someone enters in a text box. In the valid event of the textbox, I seek whether the code someone has entered exists in a table. If it doesn't exist, I inform the user. Now, I want the cursor to remain in this text box until someone either enters a valid code or leaves the text box empty (necessary for exiting purposes). In the Valid event, I have tried to setfocus to the same textbox (this.setfocus) but it raises an error to the effect that you can't Setfocus from within a Valid event.... What do I do to ensure that the cursor remains in this textbox until someone enters a valid code ?
Thanx,
Peterson.