Well, if your using the keypress event to check for this, and the user clicks on the command button instead of pressing enter, the keypress event will not be fired. This would also be the case if they press the Tab key instead. I would put the validation check in the LostFocus event.
>I guess my concept is flawed. I want the process to continue if the info entered into the textbox is correct, otherwise I want the focus to go back to the textbox. Which event should I put my code into? Thanks.
kenweber
GCom2 Solutions
Microsoft Certified Professional