>Something like that >IF nkeycode=13 > m.a=thisform.timeadd(thisform.timeadd(thisform.timeadd(thisform.timeadd(true,hot),balanc),mint),other) > m.w=plan > *? m.w > IF m.a=m.w > =MessageBox("true") > &&&go to next record mygrid1.plan.text > grdTable = thisform.MyGrid1.RecordSource > SKIP IN (grdTable) > IF EOF() > SKIP -1 IN (grdTable) > ENDIF > ELSE > =MessageBox("false") > &&stay at the same record > ENDIF > thisform.MyGrid1.Plan.SetFocus() > thisform.MyGrid1.Refresh() >ENDIF >