Jump to content

This topic is 7815 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am trying to write an If statement saying that if the year of the vehicle is less than 10 years from the current year date, then show exempt. This is what I have:

If Year(n_year) < status (currentdate),-10, "EXEMPT".

But for some reason I can't figure out how to say less than 10 years. In other words if the year is 2003 and the year of the car is 1992, then show Exempt.

Could someone help me with this?

Posted

Status (currentdate) -10 will give you ten DAYS ago, not 10 years. (Also, you have an extra comma in there.) Try this:

Case ( n_year < (Year ( Status (CurrentDate) ) -10), "EXEMPT")

This topic is 7815 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.