[b]You cannot base a date calculation on an undefined date. Date: 0D Formula: +1M[/b]
dtOldStart := dtStart; CASE recServConHead."Invoice Period" OF recServConHead."Invoice Period"::Month: BEGIN (ERROR highlighting at this place) dtStart := (CALCDATE('<+1M>',dtStart)); dtEnd := (CALCDATE('<+1M>',dtEnd)); END; recServConHead."Invoice Period"::"Two Months": BEGIN dtStart := (CALCDATE('<+2M>',dtStart)); dtEnd := (CALCDATE('<+2M>',dtEnd)); END; . . . END;
Comments