Change the WHERE clause to

WHERE dateUpdated <> null

At 04:51 PM 7/22/2003 -0700, you wrote:
>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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to