John & Doug,
By default, code like this is not necessary to make the 'enter' key function. I think you should really make sure you know *why* the enter key is not doing what it should before you put this band-aid on it.
Some places to look:
Is keyPreview property of form set to true? Is there code in keypress method of form? Are you using a framework that is affecting this?
>Wow
>Sometimes the obvious escapes us. It worked !
>I guess I had forgotten that Vfp often needs workarounds
>BTW I used this which worked (28 didn't)
>IF nKeycode = 13
>KEYBOARD CHR(9)
>ENDIF
Steve Gibson