Re: Access SQL to convert string to number

B

Ben

Cint is a VBA function that works if you are building a
query string in VB, or doing a query in Access/Jet, but
is not recognized by T-SQL which SQL Server uses. You
need to use Cast or Convert- SELECT....FROM....WHERE
NumField = Cast('5' as int).
Search Book online for more details.
HTH
Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top