dbengine.OpenDatabase fails on accdb files

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

Guest

Hello all,

I am using Vb.NET & DAO to open a accdb file, the same command works fine
when used to open a mdb file but when I try the same on accdb file it fails.
Dim dbs As dao.Database
dbs = dbengine.OpenDatabase("Path of mdb or accdb file")

The above code fails with the Error msg "Unrecognized database format".
My Question is does DAO fail to reconize accdb file or is there a way to
open accdb using DAO. I need to use dao and not ado method.

Regards,
Claton
 
Back
Top