Click here to Skip to main content
15,901,284 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I am trying to connect my windows forms application with access database. But I couldn't. It shows an error' unrecognized database format. I am using microsoft aceess 2007. the database file has .accdb extension.
please, help me to solve my problem.

What I have tried:

I have created a windows forms application. I have created an access database file in microsoft access 2007. after that, I tried to connect with access database. Unfortunately the error mentioned as above occured.
Posted
Updated 4-May-24 17:24pm
v4

1 solution

Show the code you're using and the connection string.

There are two Access database engines and it sounds like you're using the wrong one. For a .accdb extension, you should be using the Microsoft.ACE.OLEDB.12.0 provider in your connection string.
 
Share this answer
 

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