Run-time Error '3706' Provider cannot be found. It may not be properly installed.

I get the following message when trying to connect to an advantage database:

Run-time Error '3706' Provider cannot be found. It may not be properly installed.

It works fine when I try and connect to the database using the machine the application was developed on, but get the error when using a different pc even though i am usings the same .exe and database?

My VB code is as follows:

ConnObj.Open "Provider = Advantage OLE DB Provider;Data Source = C:\Program                                                                                    Files\Acorn\Database\connex.add;ServerType=ADS_LOCAL_SERVER; TableType=ADS_ADT;"

petelazellAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SQLMasterCommented:
Make sure that Advantage OLE DB provider is registered in other machine which you are using to connect to database
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
petelazellAuthor Commented:
Well done, works a treat now!!
0
SQLMasterCommented:
Great. Now, please award points
0
raajbaidCommented:
Thank you very much. But I donot know how to register it. I'm using following string.

cnnstr="Provider=ORAOLEDB.Oracle;Data Source=payrolldb;User ID=administrator;Password=admin;"
cnn.open cnnstr

The data source is stored on a win2K server and the VB6 P&D application I'm trying to install on a client connected to the server through LAN. I have registered all the DLL files incorporated with my application using "REGSVR32 path\dllfilename.dll". The files were successfully registered. But it did not work. Then I copied all the DLL files to \windows, \windows\system, \windows\system32 directories but still it did not work. Kindly suggest some solution.

raaJAINdra
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.