>If I remove the quote marks, then the program fails on line 0 of this >routine; i.e., this code does not execute. With the quote marks, the >routine gets executed but fails and there is a sql statement in the >resulting error message. The sql statement has quote marks around the "set >field1=0, set field2=1, set field3=0" portion.
Definitely remove the quotes. The sql should work if fields 1,2 and 3 are "bit" type. But CF will automatically escape the single quotes here: <cfset column_valstring="'" & charvar & "'"> Causing a syntax error. You would need to use PreserveSingleQuotes(). Though it does pose a sql injection risk if you haven't scrubbed your params. Btw, you don't need # signs here and do you really need to use evaluate()? <cfset charvar = evaluate(#column_name#)> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282524 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

