请教!动态添加的行数据写不进去怎么回事?
<%num=request.Form("num")
set rs=server.createobject("adodb.recordset")
sql="select * from kp"
rs.CursorLocation = 3
rs.open sql,conn,1,4
for i=1 to num
rs.addnew
'Response.Write Request.Form("flr")&"===="&Request.Form("fl2")
'Response.end
rs("mcjgg")=Request.Form("select2"&i&"")
rs("fl")=Request.Form("fl2"&i&"")
rs("zbh")=Request.Form("zbh2"&i&"")
rs("gs")=Request.Form("gs2"&i&"")
rs("dw")=Request.Form("dw2"&i&"")
rs("sl")=Request.Form("sl2"&i&"")
rs("xj")=Request.Form("xj2"&i&"")
rs("dj")=Request.Form("dj2"&i&"")
rs("je")=Request.Form("je2"&i&"")
rs("qxjxf")=Request.Form("qxjxf2"&i&"")
rs("gsf")=Request.Form("gsf2"&i&"")
rs("beizhu")=Request.Form("beizhu2"&i&"")
rs("hj")=Request.Form("hj2"&i&"")
rs("yldw")=trim(request.Form("MajorName"))
rs("jz")=trim(request.Form("jz"))
rs("jh")=trim(request.Form("jh"))
rs("nr")=trim(request.Form("nr"))
rs("wtdw")=trim(request.Form("wtdw"))
rs("flr")=trim(request.Form("flr"))
rs("flrq")=trim(request.Form("startdate"))
rs("bh")=trim(request.Form("bh"))
next
rs.UpdateBatch
rs.Close
conn.Close
Set rs = Nothing
Set conn = Nothing
%>
凡是带("hj2"&i&"")这样的都写不进去。rs("nr")=trim(request.Form("nr"))这样的都可以写进去,怎么回事啊