P
Peter Carlson
I'd like to convert text to int to retrieve bad records. The records
are basically Last, First, ID, Img#. All Img# will be either a real
number, or a text field like 1411/1412 or 1411-1415. I'd like to
retrieve all records that have either no img# or a img number like the 2
above. I use the below sql to do it:
SELECT Last, First, Img, val(Img) as vi from Student_List
where val(Img) = 0;
However I am getting a data type mismatch error. If I remove the where
clause it works just fine, converting the Img# to either a real int or
to #error. How can I get it to work in the where clause?
Peter
are basically Last, First, ID, Img#. All Img# will be either a real
number, or a text field like 1411/1412 or 1411-1415. I'd like to
retrieve all records that have either no img# or a img number like the 2
above. I use the below sql to do it:
SELECT Last, First, Img, val(Img) as vi from Student_List
where val(Img) = 0;
However I am getting a data type mismatch error. If I remove the where
clause it works just fine, converting the Img# to either a real int or
to #error. How can I get it to work in the where clause?
Peter