这个是我的代码:其中库book.mdb是和这个网页文件index.asp同一个目录下。表是bookitem。大侠快点帮忙啊。花了好多时间搞不定啊!<pre> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head>
<body> <% set ConnObj = Server.CreateObject("ADODB.Connection") ConnObj.open "Provider={Microsoft Access Driver(*.mdb)};dbq="&server.MapPath("book.mdb") set RSobj = Server.CreateObject("ADODB.Recordset") SQL = "select * from BookItem" RSobj.Open SQL,ConnObj,adOpenStatic %> <% Response.Write("<br>") while not RSobj.EOF for i=0 to RSobj.fields.count-1 Response.Write RSobj.fields(i).value&"<br>" next RSobj.movenext wend %> </body> </html> 预览后的错误提示是:(开发工具是dreamweaver mx) 技术信息(适用于支持人员)
错误类型: ADODB.Connection (0x800A0E7A) /index.asp, 第 11 行
浏览器类型: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
页: GET /index.asp
</pre>
[此贴子已经被regedit于2004-12-03 17:12:20编辑过]