OPEN DATABASE fix USE "calibrations" IN 0 ALIAS "Cal" SELECT Cal GOTO top strTag = Cal.Tag_Number dteCal = Cal.Date_Calibrated dteNext = Cal.Next_Calibrated_Date SCAN IF Cal.Tag_Number == strTag IF dteCal < Cal.Next_Calibrated_Date then replace Cal.Next_Calibrated_Date WITH dteCal =TABLEUPDATE() ENDIF ELSE strTag = Cal.Tag_Number ENDIF dteCal = Cal.Date_Calibrated dteNext = Cal.Next_Calibrated_Date ENDSCAN USE IN SELECT("Cal") CLOSE DATABASESAny ideas what could be causing this? Like I mentioned above, if I go into the table manually or from the command window everything will update fine. I need to get this working ASAP. Thanks for any help in advance.