FROM提交到自身的頁面時,就會報錯???
<%dim guanjian,nian,yue,nam,liy
guanjian=request.form("guanjianzi")
nian=request.form("nian")
yue=request.form("yue")
nam=request.form("fuzeren")
liy=(nian&yue)
set cnm=server.createobject("adodb.connection")
cnm.open"driver={microsoft access driver (*.mdb)};dbq="&server.mappath("data\dbsx.mdb")
set rss=cnm.execute("select * from "&liy&" where fuzeren='"&nam&"' and thingtitle like '%"&guanjian&"%'")
if rss.eof then
response.write"<tr><td>對不起。沒有你要找的內容,請重新搜索</td></tr>"
response.end()
end if
response.write"<tr><td>代辦事項標題</td><td>完成時間</td><td>完成情況</td><td>代辦人員</td></tr>"
do while (not rss.eof)
response.write"<tr><td>"&rss("thingtitle")&"</td><td>"&rss("overtime")&"</td><td>"&rss("beizhu")&"</td><td>"&rss("fuzeren")&"</td></tr>"
rss.movenext
loop
rss.close
set rss=nothing
cnm.close
set cnm=nothing
%>