#12001/11/29 23:39:27
'1
strDsn="PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE= "&server.MapPath ("/db/myAccess.mdb")
'2
strDsn="DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&server.mappath("/db/lyb.mdb")
用新版的驱动程序(1)不能执行更新
用旧的(2)可以,请问用新驱动怎样修改strSql才能执行?
set objCon=server.createobject("adodb.connection")
objCon.Open strDsn
strSql="update admin set name='"&strNewAdmin&"',passWord='"&strNewPassWord&"' Where id=1"
objCon.execute strSql