Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access OBDC connect string without pre-configured DSN

Status
Not open for further replies.

cully651

Programmer
Aug 1, 2005
41
0
0
US
Hi Guys, I'm a n00b to VBA and Tek-Tips. Gotta say up front, this place is great. I find all sorts of useful info here, so thanks.

Also, I apologize up front because I'm sure this topic has been covered but I can't find it. I'm probably not searching for the right words.

What I really need to do is connect Access 2007 to an Oracle database using an ODBC driver without pre-configuring the DSN. My current connect string is

CurrentDb.QueryDefs("qryOracleDual").Connect = "ODBC;DSN=MART;UID=MART_USER;PWD=MART_PWD;"

Please, if you can point me in the right direction of some resource to help me, I'd really appreciate it!
 
No matter what I try, I get

Error 3305: Invalid connection string in pass through query
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top