Forum Discussion
ChrisChris
9 years agoQrew Assistant Captain
Because Today() will continue to be greater than the expiration term. so you have to set a range.
Let's try this:
If(Today()>=([Expiration]-Days(45) AND Today()<=[Expiration]), true and [Customer Status] = "Closed" and [Health Term] > 30)
- ChrisChris9 years agoQrew Assistant Captain
Would you not want to reconstruct this statement thusly?
If(Today()>=([Expiration]-Days(45) AND Today()<=[Expiration]) and [Customer Status] = "Closed" and [Health Term] > 30,true,false)
- DavidDziewit9 years agoQrew TraineeThat's giving me a syntax error.
- ChrisChris9 years agoQrew Assistant Captain
will you paste here what you have done?
- DavidDziewit9 years agoQrew TraineeIf(Today()>=([Expiration]-Days(45) AND Today()<=[Expiration]) and [Customer Status] = "Closed" and [Health Term] > 30,true,false)
- ChrisChris9 years agoQrew Assistant Captain
Can we try this without the parentheses around the date range like so:
If(
Today()>=[Expiration]-Days(45) AND Today()<=[Expiration] and [Customer Status] = "Closed" and [Health Term] > 30,true,false
)If you get another syntax error, please tell us what is says.
- DavidDziewit9 years agoQrew TraineeThat appears to have worked.
Thank you so much!