Analyst2004
Technical User
I need to query Oracle database while I am in Access. I am able to programatically create a passthrough query and change its definition as required.
My problem is that my query gives ODBC error and can't connect first time. However, if I manually do a sample passthrough query and then come back and run my VB code (hidden behind a button),then it returns the data successfully. So, once connection is estb it works fine.
What am I doing wrong in the connection string ??
qdf.connect = "ODBC;DSN=pmd2;DRIVER={Microsoft ODBC for Oracle};USID=hans;PWD=hans;SERVER=pmd2"
Oralce uid/pwd/server as stated above
DSN = cmd2
ERROR : ODBC connection to ={Microsoft ODBC for Oracle}pmd2 failed.
Please advise !!
thanks
My problem is that my query gives ODBC error and can't connect first time. However, if I manually do a sample passthrough query and then come back and run my VB code (hidden behind a button),then it returns the data successfully. So, once connection is estb it works fine.
What am I doing wrong in the connection string ??
qdf.connect = "ODBC;DSN=pmd2;DRIVER={Microsoft ODBC for Oracle};USID=hans;PWD=hans;SERVER=pmd2"
Oralce uid/pwd/server as stated above
DSN = cmd2
ERROR : ODBC connection to ={Microsoft ODBC for Oracle}pmd2 failed.
Please advise !!
thanks