I added that, with the same results. When I press the Enter key when in the txtDrugFilter textbox, the grdProfile blinks and the focus is regained in the txtbox.
Let me go check the behavior of the form in general to be sure there is not some code there causing this behavior.
Thanks
>Tommy,
>
>Add a nodefault to the code so that the default handling of the enter key will not be processed.
>
>
>CASE nKeyCode = 13
> nodefault
> THISFORM.grdProfile.SETFOCUS
> Thisform.Refresh
>
Tommy Tillman A+ NetWork+ MCP