G
Guest
When I run the below SQL, I get "Data type mismatch in criteria expression".
Can anyone see the problem? I know its in the DATEDIFF expression. I've been
trying to debug this for 2 hours.
All table columns are strings. Using Access 2000.
SELECT COUNT(*) As Tot FROM tblSSRData
WHERE [CURRENT STATUS] NOT IN ('CLS','PRO','RTP')
AND [PRI] = '1'
AND DATEDIFF('d',CDate([TASK CREATED]),Now()) >= 0
AND DATEDIFF('d',CDate([TASK CREATED]),Now()) <= 30
Can anyone see the problem? I know its in the DATEDIFF expression. I've been
trying to debug this for 2 hours.
All table columns are strings. Using Access 2000.
SELECT COUNT(*) As Tot FROM tblSSRData
WHERE [CURRENT STATUS] NOT IN ('CLS','PRO','RTP')
AND [PRI] = '1'
AND DATEDIFF('d',CDate([TASK CREATED]),Now()) >= 0
AND DATEDIFF('d',CDate([TASK CREATED]),Now()) <= 30