You can handle the problem by setting a form object property T/F when the "must-enter" textbox is left (LostFocus or Valid) and using that property in the GotFocus of any other control on the form to redirect input.
Alternately, a really concrete way of doing this is to disable all other form controls when the user enters the textbox in question (via GotFocus again). this will force the issue to be sure.
>I have a textbox which it is a "must-entered" textbox. If it's empty, an error message window will popup and after it's release, the focus have to go back to the "must-entered" textbox. However, the problem i get is the focus jump to the next textbox.
>I have tried to put thisform.txtName.setfocus() in txtName.Lostfocus procedure and the error said that object txtName cannot be found or something like that.
>Please point me to the problem..
>
>
>Gan
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05