tonyweis138
Programmer
I have a customer that is scanning in a value (ex. 12345.00) that needs to be matched to a value in a text file to return a row.
However, the key value in the row would be 12345 without the '.00'. My problem is how to strip off that last few characters in the string.
If i was doing it with sql server i could do something like:
select * from table where KeyField = substring(value, 0,charindex('.',value))
But with the limited statements available with the MS ODBC text driver, i am not sure how to do it. Any ideas?
However, the key value in the row would be 12345 without the '.00'. My problem is how to strip off that last few characters in the string.
If i was doing it with sql server i could do something like:
select * from table where KeyField = substring(value, 0,charindex('.',value))
But with the limited statements available with the MS ODBC text driver, i am not sure how to do it. Any ideas?