網路試卷執行出現80040e21訊息
訊息:Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
/fm2011/exam/grad.asp, line 28
--------------------------------------按照小誌版大的內容--------------------------------------------------
'承接來自question.asp的資料
studentname=Request("studentname")
number=Request("number")
'開啟exam.mdb資料庫中的first考題資料表
'在此開啟資料庫是用來讀取答案與寫入計算後的成績
'建立資料庫連結物件conobject
Set conobject = Server.CreateObject("ADODB.Connection")
'利用MapPath方法取得資料完整真實路徑
DBPath = Server.MapPath("/fm2011/db/exam.mdb")
'利用Open方法打開資料庫
conobject.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ="&DBPath
'建立存取資料庫物件recobject
Set recobject=Server.CreateObject("ADODB.Recordset")
'讀取資料表內容
sql="SELECT * From "&"first"&" ORDER by 題號"
recobject.Open sql,conobject,1,1,1 第28行錯誤訊息
'先將資料表的資料錄移至第一筆
recobject.MoveFirst
'先將計算的總分設為0
Score=0
Response.Write "<div align=center><font color=green face=新細明體 size=6>網路試卷-成績批改</font></div>"
'將正確答案及受測學生選的答案一起顯示比對
Do While Not recobject.EOF
Sel=Request("No"&recobject(2))
Ans=recobject(8)
----------------------------------------------------------------------------------------
我是於http://www.jabry.com/該網站申請空間的。
誠摯請問該如何修改!? [b]回復 [url=http://forum.twbts.com/redirect.php?goto=findpost&pid=16176&ptid=2824]1#[/url] [i]tony040740[/i] [/b]
主機不是你自己的所以無法自行設定ACCESS資料庫檔案的權限
請詢問主機商ACCESS資料庫檔案應該放置在哪個特定位置與如何進行權限設定
頁:
[1]