If you do this and use any key other that Enter to leave the field, you will not run the movenext() function until the next time the Enter key is hit...
I would just trap for the key (chr(13)) in the Valid or LostFocus event and do whatever is appropriate...
Joe
>Could you set when you enter this field. i.e. the text1.lostfocus or text1.gotfocus on this column. (probably got focus)?
>TO:
>ON KEY LABEL ENTER movenext()
>
>Then have a function like this:
>function movenext
> skip 1
> *set foxu to the first column
> _screen.Activeform.gridname.column1.text1.setfocus()
> ON KEY LABEL
>endfunc
>
>You will want to check for eof() and such.
>
>Remember to set back the
>ON KEY LABEL
>
>Just an idea. But hope that helps a bit.
Joseph C. Kempel
Systems Analyst/Programmer
JNC