Here is how I do it. <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="# trim(form.makeid)#" Null="#IsNull(form.makeid)#" />
IsNull is a function I wrote to check if the value is blank. -----Original Message----- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2008 7:47 AM To: CF-Talk Subject: CFQueryparam and NULLs. Quick question: How I would I rewrite this using the built in NULL feature to cfqueryparam? You don't use YesNoFormat with integers, correct? <cfif len(trim(form.makeid))><cfqueryparam value="#trim(form.makeid)#" cfsqltype="cf_sql_integer"><cfelse>null</cfif> Thanks, Che ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:310366 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

