pdvsa
asked on
Between Date and Year End
Experts,
I need a formula that returns data between the current date and the year end.
I have the following and I need to modify it as so.
Between Date() And Date()+Nz([Enter Number of Days in Future],100000) Or Is Null
thank you
I need a formula that returns data between the current date and the year end.
I have the following and I need to modify it as so.
Between Date() And Date()+Nz([Enter Number of Days in Future],100000) Or Is Null
thank you
Not knowing whether the field you are trying to filter on contains only date data, if you use the BETWEEN syntax, and use DateSerial(Year(Date()) + 1, 1, 1) then you would also retrieve data for Jan 1, 2015. By using the < you are certain to get only data pertaining to 2014.
ASKER
Dale, thanks. I think I need to include days that are 5 days after year end. I think I would need Between and that DateSerial if I am thinking correctly. Not sure exactly what I need to change for 5 days after year end. Could you help me with that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect. Thank you
>= Date() AND < DateSerial(Year(date()) + 1, 1, 1)