>I Placed this code in a textbox gotfocus method.(the next object in the tab order)
>IF EMPTY (ALLTRIM(THISFORM.TxtSerial1.VALUE))
> THISFORM.TxtSerial1.SETFOCUS
>ENDIF
>
> Instead of passing the focus VFP errors out with
>Can not call setfocus from within a when, valid rangehigh, rangelow event
>
>I know that I used to use this technique in the past
>HEELLPPP
Have you tries putting the code in the When Event?
Caroline