David, If dateUpdated its a date column, you should really compare against either a NULL value or a date value. You seem to be comparing against a string value.
The syntax of NULL/Date value is dependant upon your database engine. Regards, Jared Clinton. -----Original Message----- From: David K [mailto:[EMAIL PROTECTED] Sent: Wednesday, 23 July 2003 9:52 AM To: CF-Talk Subject: SQL gurus please help Trying to do a simple select query that filters out records against a date column. I want all records with an empty value in the date column. Here's my query... <cfquery name="getData" datasource="cfDS" dbtype="ODBC"> SELECT * FROM tblCustomers WHERE dateUpdated <> '' </cfquery> ...which blows up with this error; =================================== ODBC Error Code = 22005 (Error in assignment) Data type mismatch in criteria expression. =================================== I'm assuming it's choking on the quotes. So what's the correct syntax? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

