参数不足,期待是 1。各位ASP的精英们,前辈们,求助,一直报错,信息和代码如下:
MicrosoftOLEDBProviderforODBCDrivers(0x80040E10)[Microsoft][ODBCMicrosoftAccessDriver...
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。
/wwwroot/example10/asp/add.asp, 第 6 行
1 set conn=server.createobject("adodb.connection")
2 conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("test.mdb")
3 aa=request.form("aa")
4 bb=request.form("bb")
5 exec="insert into test(aa,bb)values("+aa+",'"+bb+"')"
6 conn.execute exec
7 conn.close
8 set conn=nothing
9 response.redirect "list.asp"
我页面的:
<form name="form1" method="post" action="add.asp">
<p>aa
<input type="text" name="aa">
</p>
<p>bb
<input type="text" name="bb">
</p>
<input type="submit" name="Submit" value="提交">
</form>
求助,谢谢各位!!!!!!!!!!!!!!11 展开
[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。
/wwwroot/example10/asp/add.asp, 第 6 行
1 set conn=server.createobject("adodb.connection")
2 conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("test.mdb")
3 aa=request.form("aa")
4 bb=request.form("bb")
5 exec="insert into test(aa,bb)values("+aa+",'"+bb+"')"
6 conn.execute exec
7 conn.close
8 set conn=nothing
9 response.redirect "list.asp"
我页面的:
<form name="form1" method="post" action="add.asp">
<p>aa
<input type="text" name="aa">
</p>
<p>bb
<input type="text" name="bb">
</p>
<input type="submit" name="Submit" value="提交">
</form>
求助,谢谢各位!!!!!!!!!!!!!!11 展开
微测检测5.10
2023-07-11 广告
2023-07-11 广告
IEC62133与en62133的区别如下:1. 认证机构不同:IEC62133是国际的标准,它以国际通用的标准进行生产;而en62133采用的是欧盟的标准,它使用欧盟的生产需求进行生产。2. 宗旨不同:IEC62133的宗旨是促进电气、电...
点击进入详情页
本回答由微测检测5.10提供
展开全部
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("test.mdb")
aa=trim(request.form("aa"))
bb=(request.form("bb"))
Set Rs=Server.CreateObject("ADODB.Recordset")
exec="insert into test(aa,bb)values("&aa&",'"&bb&"')"
Rs.Open exec,Conn,1,3
rs.colse
set rs=nothing
conn.close
set conn=nothing
response.redirect "list.asp"
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("test.mdb")
aa=trim(request.form("aa"))
bb=(request.form("bb"))
Set Rs=Server.CreateObject("ADODB.Recordset")
exec="insert into test(aa,bb)values("&aa&",'"&bb&"')"
Rs.Open exec,Conn,1,3
rs.colse
set rs=nothing
conn.close
set conn=nothing
response.redirect "list.asp"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
1 set conn=server.createobject("adodb.connection")
2 conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("test.mdb")
3 aa=request.form("aa")
4 bb=request.form("bb")
5 if aa<>"" and bb<>"" then
6 exec="insert into test(aa,bb)values("&aa&",'"&bb&"')"
6 conn.execute exec
7 End if
8 conn.close
8 set conn=nothing
9 response.redirect "list.asp"
2 conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("test.mdb")
3 aa=request.form("aa")
4 bb=request.form("bb")
5 if aa<>"" and bb<>"" then
6 exec="insert into test(aa,bb)values("&aa&",'"&bb&"')"
6 conn.execute exec
7 End if
8 conn.close
8 set conn=nothing
9 response.redirect "list.asp"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询