I'm afraid I have made a mess of it. I get an OBDC Error when I run it. I have included the form information, the action page with the update query and the error. The data looks like it is being passed and processed ok. (my non-expert opinion.)
<form action="updatebuyerspromo.cfm" method="post">
<CFoutput query="bull_promoitems">
<Input type="Text" name="desc#itemid#" value="#desc#" size="50"><br>
<Input type="Text" name="icode#itemid#" value="#icode#"><br>
<Input type="Text" name="pk_sz#itemid#" value="#pk_sz#">
<Input type="Text" name="RegCost#itemid#" value="#numberformat(RegCost,999.99)#"><br>
<Input type="Text" name="DealCost#itemid#" value="#numberformat(DealCost,999.99)#"><br>
<Input type="Text" name="unitcost#itemid#" value="#numberformat(unitcost,999.99)#"><br>
<Input type="Text" name="Allowance#itemid#" value="#numberformat(Allowance,999.99)#"><br>
<input type="Hidden" name="itemid" value="#itemid#"><!--- key field in db table --->
<input type="Hidden" name="itemid#itemid#" value="#itemid#">
</cfoutput>
<input type="Submit">
This is the action page query:
<cfloop list="#form.itemid#" index="idx">
<CFQUERY NAME="pormoitmupd" DATASOURCE="dsn">
Update gen_BuyersPromoitems
Set icode = '#Evaluate("form.icode#idx#"

#',
pk_sz = '#Evaluate("form.pk_sz#idx#"

#',
desc = '#Evaluate("form.desc#idx#"

#',
RegCost = #Evaluate("form.RegCost#idx#"

#,
Allowance = #Evaluate("form.Allowance#idx#"

#,
DealCost = #Evaluate("form.DealCost#idx#"

#,
unitcost = #Evaluate("form.unitcost#idx#"

#"
</cfquery>
</cfloop>
I have tried it with and with out a "where" statement. itemid is the Key field in the insert table.
This is the error I get:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.
SQL = "Update gen_BuyersPromoitems Set icode = '998260', pk_sz = '48', desc = 'FunPack Camera Display 62251', RegCost = 180.00, Allowance = 10.00, DealCost = 171.00, unitcost = 4.00""
Data Source = "dsn"
The error occurred while processing an element with a gneral identifier of (CFQUERY), occupying document position (7:2) to (7:58) in the template file c:\inetpub\
I hope I have included all the needed info. Any assistance is appreciated.
Thanks in advance,
Matt