It looks like you're new here. Sign in or register to get started.
GLAccount.RESET; GLAccount.SETRANGE("Date Filter", CALCDATE('<-CM>',TODAY),CALCDATE('<CM>',TODAY)); MESSAGE('Min: %1\Max: %2', GLAccount.GETRANGEMIN("Date Filter"),GLAccount.GETRANGEMAX("Date Filter"));
Answers
Please have a look at the GETRANGEMIN and GETRANGEMAX functions
https://docs.microsoft.com/en-us/dynamics-nav/getrangemin-function--record-
https://docs.microsoft.com/en-us/dynamics-nav/getrangemax-function--record-
MinDate:= "G/L Account".GETRANGEMIN("Date Filter") but it's giving me 0D as a return value?
Perhaps, you missed something.
Does this code show message with dates for you?
If yes then you have mistake in your code and filter on "Date Filter" is not applied.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/