Hi All,
The problem I am running into seems to point to this but I am not positive. I am trying to create a second adodb server object to connect to a second db on the same page.
First connection (no problems):
set conn = server.createobject("adodb.connection"
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("test.mdb"
conn.Open DSNtemp
Second Connection:
folder=Left(sRst("Class ID"
, Len(sRst("Class ID"
)-1)
set conn2 = server.createobject("adodb.connection"
DSNtemp2="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp2=dsntemp2 & "DBQ=" & server.mappath(folder & "\" & folder & ".mdb"
conn2.Open DSNtemp2
The "folder" var holds a folder name with a corresponding db. This code is in a while loop and closes at the end of it. The folder var is correct, it has been tested.
Here is the error I keep getting:
General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x9a0 Thread 0xa64 DBC 0x2e6dfec Jet'.
Is there a problem with creating more than one connection?
Thanks,
Jack D
The problem I am running into seems to point to this but I am not positive. I am trying to create a second adodb server object to connect to a second db on the same page.
First connection (no problems):
set conn = server.createobject("adodb.connection"
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("test.mdb"
conn.Open DSNtemp
Second Connection:
folder=Left(sRst("Class ID"
set conn2 = server.createobject("adodb.connection"
DSNtemp2="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp2=dsntemp2 & "DBQ=" & server.mappath(folder & "\" & folder & ".mdb"
conn2.Open DSNtemp2
The "folder" var holds a folder name with a corresponding db. This code is in a while loop and closes at the end of it. The folder var is correct, it has been tested.
Here is the error I keep getting:
General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x9a0 Thread 0xa64 DBC 0x2e6dfec Jet'.
Is there a problem with creating more than one connection?
Thanks,
Jack D