> SET Name =<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.name#" />

Do the below. Will insert a null if the field is empty..

<cfqueryparam
   value="#trim(myFormField)#"
   cfsqltype="CF_SQL_VARCHAR"
   null="#not len(myFormField)#">


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343439
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to