You must make sure that retval is either a unique identifier, or the record number. Then you use either Locate for yourfield=yourRetval (or SEEK or any of the other similar functions), or Goto yourRetval if you use record number. Myself I never use record number, except for cursors.
>Thankyou Tore
>
>I have now created the following syntax in the keypress event on the grid:
>
>
>IF nKeyCode = 13
>thisform.retval = curmatch.artikey
>THISFORM.Release()
>ENDIF
>
>
>In addition I have created a property on the form named retval and in the unload event of the form I have
>
>
>return thisform.retval
>
>
>How can I use this property value to find the record in my main table?