>Method:ValorPorConta >WITH thisform > .Sfcontainer1.visible=.t. > .Sfcontainer1.txnValorPorConta.Value=.txnSaldo.Value > .Sfcontainer1.txnValorPorConta.SetFocus() >ENDWITH >Few possibilities here: txnValorPorConta.When returns .f.; its .GotFocus sets focus to something else; .txnSaldo.value is null (at eof?), you're calling this from a .valid, .when, .rangelow or .rangehigh methods. In the last case, you'd get an error.