dinmatt
asked on
Decrement last characters of a string
I have a string like this: "2012-13". I want to reduce the last characters on each side of the hyphen by 1 so that it becomes 2011-12. The string represents the current payment year and is stored in a setup table. I want to be able to write a query that will allow me to enter in the criteria row payments recorded for the current payment year and the prior payment year. ie, 2012-13 and 2011-12. Can anyone provide a solution for this that I could use?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome!
/gustav
/gustav
ASKER