>>>IF MCard_Nbr <> Card_Nbr .OR. DELETE()
>>> nodefault
>>> do quickmsg with "CUSTOMER'S CARD NO. NOT ON FILE"
>>> thisform.mytextbox1.setfocus()
>>> thisform.refresh
>>>ENDIF
>>
>>I have one textbox and a quit(cmdbutton). The user enters his data and if it's not on file, I want the setfocus to go back to the textbox. Pure & simple. I think
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."Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."