Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
the wrong is : Cannot open database . It may not be a database that your application recognizes, or the file may be corrupt

i'm using this string connection

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccessFile.accdb;
Jet OLEDB:Database Password=MyDbPassword;

What I have tried:

i'm using this string connection

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccessFile.accdb;
Jet OLEDB:Database Password=MyDbPassword;
Posted
Updated 4-Oct-16 2:48am
Comments
José Amílcar Casimiro 4-Oct-16 6:17am    
The file is in the indicated path? And the file access password is mentioned?

1 solution

Do you REALLY have a database in the folder "C:\MyFolder" called "MyAccessFile.accdb"? Did you REALLY set its database password to "MyDbPassword"?

I doubt it.
 
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