R
rocco
Hello,
I have a table (CONTACT) where we collect data from patient's visit.
There is a filed named 'visit' where IT is recorded the visit number. The
filed is settled as TEXT because visit can go from 1 to 20 and then from c1
to c12.
Snce it is text, I have used Access's conversion formula to filter data into
this field. But this wont work!!!
Here is the code:
SELECT CONTACT1.ID, CONTACT1.VISIT
FROM (SELECT ID, VISIT FROM CONTACT WHERE VISIT NOT LIKE 'c*') AS CONTACT1
WHERE CINT(CONTACT1.VISIT)>12
and always I receive the message: 'data type mismatch in criteria expression'.
Can help?
Thanks
I have a table (CONTACT) where we collect data from patient's visit.
There is a filed named 'visit' where IT is recorded the visit number. The
filed is settled as TEXT because visit can go from 1 to 20 and then from c1
to c12.
Snce it is text, I have used Access's conversion formula to filter data into
this field. But this wont work!!!
Here is the code:
SELECT CONTACT1.ID, CONTACT1.VISIT
FROM (SELECT ID, VISIT FROM CONTACT WHERE VISIT NOT LIKE 'c*') AS CONTACT1
WHERE CINT(CONTACT1.VISIT)>12
and always I receive the message: 'data type mismatch in criteria expression'.
Can help?
Thanks