> Let queryParam do the work for you:
>
> UPDATE Soc
> SET TransProv = <cfqueryparam cfsqltype="cf_sql_varchar"
> value="#form.TransProv#" null="#not len(form.TransProv)#" />
> WHERE ID = <cfqueryparam cfsqltype="cf_sql_integer" value="100" />

You may need to trim the value first:

null="#not len(trim(form.TransProv))#"

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332666
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to