<%
'option explicit
Response.Write("<h4>Agent Database</h4>"
dim oCon
dim oRS
dim sSql
Set oCon = Server.CreateObject("ADODB.Connection"
oCon.Connectionstring = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=c:\mydb\agentdb.mdb"
oCon.Open
Set oRS = Server.CreateObject("ADODB.Recordset"
sSql="SELECT * FROM TblPathogen"
oRS.Open sSql, oCon
%>
This code worked fine at my home PC.
I had saved the agentdb.mdb at same place at home and work.
C:\mydb\agentdb.mdb.
I was able to connect at home but i am having problems at my work.
I get this message. Can you help?? For some reason I am not able to connect.
Thanks.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xc34 Thread 0xf2c DBC 0x1fd1284 Jet'.
/agent/agent3.asp, line 17
QB
'option explicit
Response.Write("<h4>Agent Database</h4>"
dim oCon
dim oRS
dim sSql
Set oCon = Server.CreateObject("ADODB.Connection"
oCon.Connectionstring = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=c:\mydb\agentdb.mdb"
oCon.Open
Set oRS = Server.CreateObject("ADODB.Recordset"
sSql="SELECT * FROM TblPathogen"
oRS.Open sSql, oCon
%>
This code worked fine at my home PC.
I had saved the agentdb.mdb at same place at home and work.
C:\mydb\agentdb.mdb.
I was able to connect at home but i am having problems at my work.
I get this message. Can you help?? For some reason I am not able to connect.
Thanks.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xc34 Thread 0xf2c DBC 0x1fd1284 Jet'.
/agent/agent3.asp, line 17
QB