Hi Les --

That solved my problem. Thanks!

 Scott 




----- Original Message ----
From: Les Mizzell <[email protected]>
To: cf-talk <[email protected]>
Sent: Wed, March 30, 2011 7:08:02 PM
Subject: Re: Processing Empty Form Fields


> 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:343441
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to