>LPARAMETERS nKeyCode, nShiftAltCtrl >LOCAL lnresult >lnresult = DODEFAULT(nKeyCode, nShiftAltCtrl) >gcLastName = This.Value >REQUERY("ChildList") >ThisForm.Refresh() >return(.t.)>
LPARAMETERS nKeyCode, nShiftAltCtrl DoDefault(nKeyCode, nShiftAltCtrl) gcLastName = Alltrim(this.value) REQUERY("ChildList") ThisForm.grdChildlist.Refresh() NoDefaultI'm curious why you have a result value and a return value in there? Does KeyPress return anything other than .T.? And where would it return it to?