juster21
Well-known Member
- Joined
- Jun 3, 2005
- Messages
- 867
I'm trying to use a sql statement in ADO in a worksheet to return an integer value from numbers which are stored as text.
I've tried the following but neither works...
Not sure if it's the syntax or what
I've tried the following but neither works...
Code:
"SELECT MAX(CAST([ID] AS INT)) FROM [myData$];"
and
"SELECT MAX(CONVERT(INT, [ID])) FROM [myData$];"
Not sure if it's the syntax or what