I use some code that I found on this site to establish and refresh an ODBC connection to Oracle. And it works great.
The problem I have is that I need to connect to two different sources.
I use the following information to feed the code.
UID = myId
PWD = myPwd
ODBCtable = apps_Ap_table
LocalTable = apps_Ap_table
DSN = Oracle
DBQ = FINPROD_PROD
And:
UID = fbdId
PWD = fbdPwd
ODBCtable = PO_Items
LocalTable = PO_Items
DSN = Oracle
DBQ = Tor_mfg
I can open the database and open either source independently, however, when I try to open the second table I get the following message:
"Microsoft Jet database could not find the object"
"Make sure the object exists and that you spell its name and path correctly."
What I need to do is open the first source and download some information and then "close" it and open the second source. I would love to able to have them both accessible at the same time if possible.
Currently the only way I can do this by closing and reopening the database.
I can post the code but I don't think that is the problem since it will work once either table I try to connect.
Thanks in advance for your help,
Wes
I like work. It fascinates me. I can sit and look at it for hours..."
The problem I have is that I need to connect to two different sources.
I use the following information to feed the code.
UID = myId
PWD = myPwd
ODBCtable = apps_Ap_table
LocalTable = apps_Ap_table
DSN = Oracle
DBQ = FINPROD_PROD
And:
UID = fbdId
PWD = fbdPwd
ODBCtable = PO_Items
LocalTable = PO_Items
DSN = Oracle
DBQ = Tor_mfg
I can open the database and open either source independently, however, when I try to open the second table I get the following message:
"Microsoft Jet database could not find the object"
"Make sure the object exists and that you spell its name and path correctly."
What I need to do is open the first source and download some information and then "close" it and open the second source. I would love to able to have them both accessible at the same time if possible.
Currently the only way I can do this by closing and reopening the database.
I can post the code but I don't think that is the problem since it will work once either table I try to connect.
Thanks in advance for your help,
Wes
I like work. It fascinates me. I can sit and look at it for hours..."