But I want to have the dates the same. I try it like this: SetDates(Rec, StartDate2, EndDate2, Regelkorting); Rec.SETRANGE(StartDate2,StartDate2); IF ((Rec.COUNT > 1) AND (FORMAT(Rec.StartDate2) <> FORMAT(Rec.StartDate2))) THEN ERROR('The dates has to be the same!! ');
↧