Lets say there's a situation where you've set a date in a date/time DB field and now the date no longer applies and you want to blank out the field on an update.
It says datatype mismatch when try to update with an empty string (ha.. can I dateformat an empty string?)
quote: Ok, then why doesn't <cfif thedate is NULL> work?
Because ColdFusion does not really have the concept of NULL values. In cfquery results, any NULL values are essentially converted to an empty string ie "". So your cfif conditions should test accordingly. As mentioned, you can also use functions like IsDate(), IsNumeric(), etecetera if it is more appropriate for the given value.
This message was edited by cfSearchin on 3-31-10 @ 6:07 PM