>Try the following
>
>lnNextControl = THIS.TabIndex+1
>IF THISFORM.ControlCount > lnNextControl
> THISFORM.CONTROLS(lnNextControl).SETFOCUS
>ENDIF
>
>You could also make it more sophisticated by checking to ensure that
>THISFORM.CONTROLS(lnNextControl).BASECALASS <> "LABEL" and also <>"CONTAINER" .. etc
Russ
This only works if the TAB order AND the Focusable controls have the same order.
I will have to change the tab order and see. Should work.
Thanks
Bernard