ADO connection string error??

B

Brent

Here is my code, w/o the username/password:

Dim cn As New ADODB.Connection
..
..
cn.Open "Provider=msdaora;Data Source=qse1.world;User ID=XX;Password=XX"

When I run it in Excel it pauses a few seconds on the cn.Open statement then
gives:

Run-time error '-2147467259(80004005)':
Automation error
Unspecified error

Any suggestions? I have tried just about every form of connection string
and get the same message. Thank you.

Brent
 
B

Brent

Sorry, went to:

cn.Open "Data Source=qse1;User ID=xx;Password=xx;"

and now it works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top