Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: RE: Setfilter with only end date

$
0
0
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,

Viewing all articles
Browse latest Browse all 11285

Trending Articles