What is the correct syntax, please?
I have a varchar field that, in Access, could be converted to a number within queries, for ex:
WHERE VAL(ROOM) < 0200
Now that I've converted to SQL Server, my queries are throwing an error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC SQL Server Driver][SQL Server]'VAL' is not a recognized function name.
SQL = "SELECT * from datasource WHERE 0=0 AND VAL(ROOM) < 0200 Order by last, first"
I have a varchar field that, in Access, could be converted to a number within queries, for ex:
WHERE VAL(ROOM) < 0200
Now that I've converted to SQL Server, my queries are throwing an error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC SQL Server Driver][SQL Server]'VAL' is not a recognized function name.
SQL = "SELECT * from datasource WHERE 0=0 AND VAL(ROOM) < 0200 Order by last, first"