At work I programmed a little something in access vba to automatically create mails and send them out. To get all the information needed, I need to get access to a server of my company.
Everything worked for me: Programmed the vba, installed oracle instant client 12_1 and the odbc part both in C:\Oracle\instantclient_12_1
(both 32bit), installed the odbc_install.exe
and created the tnsnames.ora
-file in the same directory.
When I try to do the same for my colleagues, eventually the:
Run-time Error '-2147467259 (80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
appears.
I have absolutely no idea why. Tried to install 64bit driver, which can clearly not work :P Tried to change the connection strings in vba and the tnsnames.ora file...
I did not yet create a user-dsn connection, which I really want to avoid doing and was not really necessary.
Do you have an idea what could be the problem or how I can fix this?
.
.
Here are the connection strings I used in vba:
Set CMDB_cn = New ADODB.Connection
Set CMDB_rst = New ADODB.Recordset
Dim strConnect, str1 As String
strConnect = "Driver={Oracle in instantclient_12_1};Dbq=blabla;Uid=user;Pwd=swordfish;"
str1 = "select * From db.table WHERE Name = 'Mr. Nobody';"
CMDB_cn.Open strConnect
And tnsnames.ora:
blabla=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=123.456.789.123)(PORT=1234)))(CONNECT_DATA=(SID=serverName)(SERVER=DEDICATED)))