LPARAMETERS nKeyCode, nShiftAltCtrl if nKeyCode = 13 nodefault thisform.grid1.SetFocus() endif>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.