>>>>I tried both, same problem.
>>>>
>>>>But when I replace the 'DO FORM' line with '? "TEST" everyting works fine.
>>>>
>>>>So the FORM messes up the normal focus behaviour.
>>>
>>>Just wondering if this.setfocus after Do Form would do the trick?
>>
>>You cannot use this.setfocus in the valid of the textbox.
>
>Right... the whole bit of code should have been in .lostfocus instead.
In lostfocus you would also need NODEFAULT after this.setfocus for it to work.
--sb--