>Does anyone know what is equivalent to the SETFOCUS command? In my valid method, it's not allowing me to thisform.fieldtxt.setfocus. It says that it's not allowed in Valid event. Do you have another suggestion of what to use? I tried got focus but that doesn't work either!
>
>All I want to do is return the cursor to the field where the error happened.
Or return 0, if you don't want the message that sometimes appears with return .F.
Or, if you want to redirect focus, use Lostfocus instead. That allows setfocus. In Lostfocus, put
Nodefault
Thisform.somecontrol.Setfocus
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.