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.
>
>what happens when the user does NOT know a correct card #? It will loop forever and hitting the quit cmdbutton doesn't quit.
kenweber
GCom2 Solutions
Microsoft Certified Professional