bluecjh
Programmer
- Mar 12, 2003
- 385
I have just got asp running on an intranet, I thought
I would test this with an access asp export of a very
simple form.
when publishing the asp page i get
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
...
/folder1/folder2/frmfaq.asp line 18
The bit of code is:
<!--The following token places all object output inside the <BODY> tag.--><%
Session.timeout = 5
If IsObject(Session("eOASys_FAQs_conn")) Then
Set conn = Session("eOASys_FAQs_conn")
Else
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "eOASys_FAQs","",""
Set Session("eOASys_FAQs_conn") = conn
End If
%>
<%
If IsObject(Session("Form_frmFAQs_rs")) Then
Set rs = Session("Form_frmFAQs_rs")
Else
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "SELECT * FROM [tblFAQs]", conn, 3, 3
If rs.eof Then
rs.AddNew
End If
Set Session("Form_frmFAQs_rs") = rs
End If
%>
<%
line 18 is rs.Open "SELECT * FROM [tblFAQs]", conn, 3, 3
I would have expected the code to be faultless as it is an access export not written by me.
I am using a system dsn on the server.
any ideas?
thanks
chris.
I would test this with an access asp export of a very
simple form.
when publishing the asp page i get
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
...
/folder1/folder2/frmfaq.asp line 18
The bit of code is:
<!--The following token places all object output inside the <BODY> tag.--><%
Session.timeout = 5
If IsObject(Session("eOASys_FAQs_conn")) Then
Set conn = Session("eOASys_FAQs_conn")
Else
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "eOASys_FAQs","",""
Set Session("eOASys_FAQs_conn") = conn
End If
%>
<%
If IsObject(Session("Form_frmFAQs_rs")) Then
Set rs = Session("Form_frmFAQs_rs")
Else
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "SELECT * FROM [tblFAQs]", conn, 3, 3
If rs.eof Then
rs.AddNew
End If
Set Session("Form_frmFAQs_rs") = rs
End If
%>
<%
line 18 is rs.Open "SELECT * FROM [tblFAQs]", conn, 3, 3
I would have expected the code to be faultless as it is an access export not written by me.
I am using a system dsn on the server.
any ideas?
thanks
chris.