2

I have an Access 2010 database that I am trying to access in a Windows Form Visual Studio application.

Here is my code:

         strDB = " Provider=Microsoft.ACE.OLEDB.12.0;Data Source="



        strDB = strDB & pstrPathName


        ' the connection object
        mdbDatabase = New OleDbConnection(strDB)

        ' open the connection
        mdbDatabase.Open()

It fails to work. The Message I get is “Microsoft.ACE,OLEDB.12.0” provider is not registered on the local machine.

I was advised in another Forum to try to install AccessDatabaseEngine.exe. That program installed ok but it didn’t help. Any thoughts?

Bob

3

1 Answer 1

0

I found the answer in another Forum

1) Right Click on the Project, choose Properties 2) Choose Compile 3) Click on Advance Compile 4) Under Option, pick Target CPU 5) Chnage to x86.

Bob

1
  • In that case, it seems that the answer is 32 bit.
    – Fionnuala
    Feb 9, 2012 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.