我是想按提交过来的yrdwqc的值来做查询条件,弄了一个晚上都没有搞好
如以上网求助。源代码如下:
adsdata="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("ads/user.mdb")
set adsconn=server.CreateObject("adodb.connection")
adsconn.Open adsdata
dw=trim(Request("yrdwqc"))
adssql="select * from usertable where yrdwqc like "& dw
set adsrs=adsconn.Execute (adssql,1,1)
while not adsrs.EOF or BOF
Response.Write("
"& adsrs("name") &"
")
adsrs.MoveNext
wend
adsrs.Clone
set adsrs=nothing
adsconn.Close
set adsconn=nothing
为什么运行时会出现:
-------------------------------------------------------------
Microsoft JET Database Engine 错误 '80040e10'
至少一个参数没有被指定值
/sb/listdwgr.asp, 行10
-------------------------------------------------------------
希望大家多多帮忙。谢谢!!! :confused: