Hello,

Try this query, I assume it will work fine

<cfquery name="getData" datasource="cfDS" dbtype="ODBC">
SELECT     *
FROM     tblCustomers
WHERE     dateUpdated IS NOT NULL
</cfquery>

Qasim Rasheed
(Certified Advance ColdFusion 5.0 Developer)

>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
                                

Reply via email to