TheSouthCole
Technical User
- Jul 9, 2003
- 32
I know there must be a simpler solution than to change the field's data type to number (I hope)!
I have numbers in a text data type field. I need to query for numbers <=998. Didn't work. I queried to remove blanks, then queried using Expr1:Val([fieldname]) in a blank field cell. Works wonderfully.
Next, I try adding criteria to the same field cell, and I get a Data Type Mismatch error. If the Val function sees numeric values, why wouldn't criteria of <=998 work?
What am I missing? Thanks!!!
I have numbers in a text data type field. I need to query for numbers <=998. Didn't work. I queried to remove blanks, then queried using Expr1:Val([fieldname]) in a blank field cell. Works wonderfully.
Next, I try adding criteria to the same field cell, and I get a Data Type Mismatch error. If the Val function sees numeric values, why wouldn't criteria of <=998 work?
What am I missing? Thanks!!!