No problem! I've made some mistake in the above code. IF StartDate = 0D THEN Item.SETFILTER("Date Filter",'.. %2 ',EndingDate) else Item.SETFILTER("Date Filter",'%1..%2',StartingDate,EndingDate) The bolded part should have been %1, but i think you have found this out yourself. Corect code: IF StartDate = 0D THEN Item.SETFILTER("Date Filter",'.. %1 ',EndingDate) else Item.SETFILTER("Date Filter",'%1..%2',StartingDate,EndingDate) best regards,
↧