LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve floating point data with an sql select statement

Hi

 

I'm quite new to using sql but I have a system working where I can read and write strings to an access database.

Now I want to retrieve a a float, from a field where another field in the same post corresponds to a specified float, with a select statement.

When using strings I wrote

SELECT column_name FROM [table_name] WHERE column2_name='value'

in my query.

 

But instead of getting the desired value I get an error message telling me that I have a

"Data type mismatch in criteria expression".

I think I understand why but does anybody know what I should have written instead?

0 Kudos
Message 1 of 2
(2,348 Views)

Is the data type of column2_name String?  If it's not, I think the single-quotes you have around 'value' will cause that error.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 2
(2,345 Views)