well i have already found a work around for this, and because i am on a tight schedule for work, i'll have to move on for now. I appreciate the help, next time i need to use the SUBSTRING function, I will try your suggestion, and If i continue having problems, I will return here and post the code.
ok, well most likely either the database version/vendor you use doesn't support substring (at least not that function name) or you have another error in your code.
Bookmarks