Set the Form.KeyPreview=.T. and try the following in the textbox's KeyPress event:
IF nKeyCode=13
KEYBOARD '{DNARROW}'
ENDIF
>I have a 1-column Grid on a form. After the user makes an entry on 1 line (record) of the grid, is there some way, when the user presses Enter, to be able to jump down to the next line (record), instead of having to use the down arrow key???
>
>I tried, in the Valid Event of the txt box in the Grid, to say something like...
>
>
>mNextRecord = RECNO() + 1
>GO mNextRecord
>ThisForm.Refresh
>
>
>Any help would be much appreciated. TIA, CWH.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.