Click here to Skip to main content
15,888,108 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear all,

i have upgraded my computer and now i have windows 7 64 bit. previously, i had windows xp service pack 3.

i have installed the same visual studio 2008 and i am using MS Access database. when i tried to connect the database through Data Source ODBC > ODBC Data Sourse Administrator with SysWOW64 it give an error in V. S. 2008 that "The Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine". i can see all the database are there in odbc data source administrator yet it shows the same error.

i tried to change the path in Tracing tab at Custom Trace DLL but after click Apply or ok, the change does not take effect and remains the same as System32 and not SysWOW64.

what should i do? should i reinstall the OS with 32 bit?
please help...

thanks in advance.

Mayank

What I have tried:

Googling but not succeeded. found so many solutions but no one is working for me.
Posted
Updated 10-Apr-17 20:49pm
Comments
Richard MacCutchan 11-Apr-17 4:22am    
Why not just follow the error message and install the ACE driver?

1 solution

Not quite clear on how you access the database, if you are using 32 bit office on 64 bit system and are creating a DSN with ODBC connection manager you need to run the 32 bit version Odbcad32.exe, the one in control panel will be the 64 bit version and the registry keys are stored in different locations for each version.

You can download the ACE OLEDB 12 file from MS and install it with your application or use OLEDB without the Office module the result is the same but you do not need Office or the module installed.

Download Microsoft Access Database Engine 2010 Redistributable from Official Microsoft Download Center[^]

Lots of examples online if you search for OLEDB and Access database but a simple connection string;

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=your database file name here;"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900