<%
set cnn = Server.CreateObject(“ADODB.Connection“)
ps=“Driver={Microsoft Access Driver (*.mdb)};DBQ=“_
& Server.MapPath(“..\DBASE\DBASE.MDB“)
cnn.open ps,2,2
%>
<%
xm=request.form(“name“)
zgid=request.form(“zgid“)
MySql=“Insert into person values (zgid,xm)“
cnn.BeginTrans
cnn.Execute MySql
cnn.CommitTrans
%>
大致程序如上,执行时提示如下错误:
[Microsoft][ODBC Microsoft Access 驱动程序] 参数不足,期待是 2
是什么问题啊,写库权限不够吗,如何解决,一鞠到底!!