I always use:  null="#NOT len(trim(form.whatever))#" as that catches
everything.

Dave

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2008 9:55 AM
To: CF-Talk
Subject: RE: CFQueryparam and NULLs.

If FORM.makeID is either zero or a number:

<cfqueryparam value="#trim(form.makeid)#" cfsqltype="cf_sql_integer"
null="#NOT FORM.makeID#">

Maybe throw in a Trim in the null="" too.

Adrian


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310367
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to