Err: 'Val' is not a recognize function name.

  • 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

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply