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 -----Original Message----- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: 07 August 2008 15:47 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:310365 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

