dbengine.OpenDatabase fails on accdb files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am running the following code in VB.NET to open accdb and it fails as
"Unrecognized database format". I am using the following code
Dim dbs As dao.Database
dbs = dbengine.OpenDatabase("path of the accdb file")

The above code works fine if I used an mdb file. Is there a way to open
accdb files using DAO, I cant use ADO method, so if there is any way please
suggest me.
I guess DAO is compatible with accdb files because if use dbs = currentdb it
works fine, its only if I set a diff path for the accdb file it fails.

Regards,
Claton
 
Back
Top