lparameters ncolindex local m.lnRecno lnRecno = recno('BatchCntrl') if this.nCurRec <> m.lnRecno with thisform select FilingView set step on if getnextmodified(0)>0 *if messagebox("Do you want to save changes in the FilingDate table?",36,"Save?")=6 =tableupdate() && Update the record, so it would not complain *else * =tablerevert() *endif endifI've checked it, and it returns 0 regardless of my changes in FilingView. Do you see the problem with this code?