Conversion from string to type 'Double' is not valid.
Posted
by Adnan Badar
on Stack Overflow
See other posts from Stack Overflow
or by Adnan Badar
Published on 2010-03-23T07:07:21Z
Indexed on
2010/03/23
7:13 UTC
Read the original article
Hit count: 268
Hi,
I am getting the following error while running a select statement (using OleDbCommand).
My query is
SELECT CME
FROM Personnel
WHERE CME = '11349D'
If objOleDbCom.ExecuteScalar() > 0 Then
When i execute the above statement i got this error
Conversion from string "11349D" to type 'Double' is not valid.
My field CME data type is Text
My database is Access 2007
I tried by running my query directly inside database and it is running fine.
Please suggest.
Thanks.
© Stack Overflow or respective owner