dbengine.OpenDatabase fails on accdb files

C

claton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top