Robbydobbs Posted September 10, 2003 Posted September 10, 2003 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?
jamesooooo Posted September 10, 2003 Posted September 10, 2003 I would think you would say something like : if year(status(currentyear)) - n_year < 10 , "EXEMPT"
Fitch Posted September 10, 2003 Posted September 10, 2003 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")
Robbydobbs Posted September 10, 2003 Author Posted September 10, 2003 Thanks a lot you guys. It worked Great!!!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now