If I do this: SetDates(Rec, StartDate2, EndDate2, Regelkorting); Rec.SETRANGE(StartDate2,StartDate2); IF (Rec.COUNT > 1) THEN //AND (FORMAT(Rec.StartDate2) = FORMAT(Rec.StartDate2))) THEN ERROR('The dates has to be the same!! '); it checks if they are the same. But I want that the dates are the same
↧