May 19, 2015 at 4:03 am
hi fellow DBA's...just need your little help....this is my query in SQL Server 2000.
"SELECT tblSchoolYear.SchoolYearTitle" & _
" From tblSchoolYear" & _
" Where (((Val(Left([tblSchoolYear]![SchoolYear], 4))) > " & Left(sOldSchoolYear, 4) & "))" & _
" ORDER BY tblSchoolYear.SchoolYearTitle;"
the error message with that query is:
Err: 'Val' is not a recognized function name.
so my question is:
1. How to rewrite my query to a SQL Server 2000?
Note: Im using VB6 and SQL Server 2000
May 19, 2015 at 4:09 am
Please don't post multiple threads for the same problem.
No replies here please, direct replies to http://www.sqlservercentral.com/Forums/Topic1686770-3412-1.aspx
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy