IF nkeycode=13 m.a=thisform.timeadd(thisform.timeadd(thisform.timeadd(thisform.timeadd(true,hot),balanc),mint),other) m.w=plan *? m.w thisform.text1.Value=m.a thisform.text3.Value=m.w IF m.a=m.w =MessageBox("true") &&&go to next record mygrid1.plan.text grdTable = thisform.Grid1.RecordSource SKIP IN (grdTable) &¬hng happend IF EOF() SKIP -1 IN (grdTable) ENDIF ELSE =MessageBox("false") &&stay at the same record ENDIF thisform.Grid1.plan.SetFocus()&&&error message thisform.Grid1.Refresh() ENDIF>No you said that it keeps going through the false code, didnt you?