急,批量更新数据库问题请教…………
通过form传递checkbox数据id2,可是代码老是出错…………弄不明白…………
以下是错误信息:
---------------------------------
Microsoft VBScript 运行时错误 (0x800A01A8)
/system/products/Quanlity.asp, 第 444 行
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MyIE2)
---------------------------------
程序代码如下,(红色部分为出错行——444行)
if request("action")="yes" then
'接收表单数据
id=request.form("id2")
indate=request.form("indate")
inpri=request.form("inpri")
quan=request.form("quan")
amount=request.form("amount")
txt=request.form("txt")
indate1=Split(indate," ,")
inpri1=Split(inpri," ,")
quan1=Split(quan," ,")
amount1=Split(amount," ,")
txt1=Split(txt," ,")
idarr=split(id," ,")
for i=0 to ubound(idarr)
'出错行
MM_coon_STRING.execute=("Update inProducts set M_indate='"&indate1(i)&"',M_inpri='"&inpri1(i)&"',M_quan='"&quan1(i)&"',M_amount='"&amount1(i)&"',M_txt='"&txt1(i)&"' where C_id ='"&idarr(i)&"'")
next
response.write "<script language=javascript>"
response.write "alert('恭喜,产品进货信息批量修改成功!');"
response.write "this.location.href='vbscript:history.back()';</script>"
Response.end
end if