Add NODEFAULT to the LostFocus().
>Hi
>I have a textbox containg some validation code and then further code in th LostFocus. The code in LostFocus will do a couple of SetFocus depending on CASE statement.
>
>The problem is if I try to SetFocus to the original textbox containing this LostFocus. I have tried "THISFORM.textbox.SetFocus", "THIS.SetFocus" but I can't get the focus to stay with the textbox, it always moves to the next object.
>
>Anyone with ideas?
>
>Regards
>Doug Johnston
>
>P.S. I can't put the code in the valid because of all the SetFocus that have to done.
--sb--