Hi,
what is rs.fields("FinYear")? Is it a date? Is it the year?
I don't understand why you are using mid. If you want to extract the year from a date, simply use datepart, as following:
Response.Write DatePart("YYYY", Date())
This would result in 2010.
If this is not what you want, please let me know the value of rs.fields("FinYear").
Baradaran
Junior Poster in Training
88 posts since Feb 2007
Reputation Points: 11
Solved Threads: 7