我晕,已经删除了,再点当然报错了,因为RS中为空嘛。在mysql="select * from orders where id="&request("id") 后面加个一个判断:if rs.eof then response.write("您指定的记录不存在或已被删除!")end if*************************************晕,这样加判断:if rs.eof then rs.close conn.close set rs=nothing set conn=nothing 返回搜索无记录页面elsers.delete rs.close conn.close set rs=nothing set conn=nothing end if end if response.Redirect("find.asp")