Hey there,
In the body of a <cfloop>, this works: <cfif isdefined
("form.ceilingpaint#i#")>. Do I need to use the evaluate function to get
the value of that same variable for use in an update query? What is the
correct way to write the <cfquery> below.
Thank you very much.
Mark
<cfloop index="i" from="1" to="#paintListRecordCount#">
<cfif isdefined ("form.ceilingpaint#i#")>
ceiling #i# is defined <br>
<cfquery name="ceiling" datasource="mdfinish">
UPDATE Areas
SET CeilingPaint = #form.ceilingpaint + i#
where areaId = #form.ceilingareaId + i#
</cfquery>
</cfif>
</cfloop>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219240
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54