大家都来找错误~~~!!!!!
<%@LANGUAGE="VBSCRIPT"%>
<%
set dbpath=server.MapPath("employees.mdb")
set conn=server.CreateObject("adodb.connection")
conn.open "dirver={microsft access dirver (*.mdb)};dbq="& dbpath
set rsdepartments=conn.execute("select Distinct Department from CIEmpDir")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>department list</title>
</head>
<body>
<p> </p>
<table width="760" border="0">
<tr>
<td><p align="center"><strong><font size="6">ABC Company</font></strong></p>
<p align="center"><font size="6"><strong>Phone/Email Directory</strong></font></p>
<p align="center"> </p>
<p align="center">
<%
do until rsdepartment.eof
%>
</p>
<p align="center"><a href="../adddatebass/result.asp?view=Department&Department=<%response.Write rsdepartment("Department")%>">View
all Employees form Department
<%response.Write rsdepartment("Department")%>
</a></p>
<p align="center">
<%
rsdepartment.movenext
loop
%>
</p></td>
</tr>
</table>
</body>
</html>
运行的时候出错 提示如下:
Microsoft VBScript 运行时错误 错误 '800a01a8'
缺少对象: '[string: "D:\xiangshengyi\home"]'
/results.asp, 行4
请问是哪里错了啊 缺少什么对象啊 是数据库的吗
可是我都有了啊 还有它的目录怎么是D:\xiangshengyi\home啊?
我明明是放在D:\xiangshengyi\home\employees下的啊?
但是我把数据库放在D:\xiangshengyi\home下也没用 还是这个错误
请各位大侠指导下 谢谢~~~~!