11. Mai 2011 17:18
11. Mai 2011 17:32
11. Mai 2011 22:19
FirstDay := GETRANGEMIN("Date filter");
LastDay := GETRANGEMAX("Date filter");
FirstDayLastYear := CALCDATE('<-1Y>',FirstDay);
LastDayLastYear := CALCDATE('<-1Y>',LastDay);
SETRANGE(LastYearfilter,FirstDayLastYear,LastDayLastYear);