lnLowTab=10000000 oResult=.NULL. for each oControl in thisform.controls if type('oControl.TabIndex')='N'; and type('oControl.ReadOnly')='L'; and !oCOntrol.ReadOnly; and oCOntrol.TabIndex < lnLowTab lnLowTab=oControl.TabIndex oResult=oControl endif endfor if !isnull(oResult) oResult.SetFocus() endifSome might by disgusted by me setting lnLowTab=1000000, so if it bothers you, just tweak it a little.