No, what I mean is that if in your validation code if your setting focus back to the textbox when it doesn't contain a valid number the Quit button won't be able to get focus unless a valid entry is made.
>>Tim, If this is something your trying to avoid, I think you'll run into the same problem using setfocus(). Perhaps all you need to do is enable/disable controls allowing the user to continue only when a valid entry has been made. This would still enable the control being checked to lose focus and the quit button would be able to be clicked.
>
>Ken,Not sure what you're saying there. But are you saying there isn't a way to allow the user to quit regardless of what he's entered into the textbox?
kenweber
GCom2 Solutions
Microsoft Certified Professional