dbengine.OpenDatabase fails on accdb files

C

claton

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
 

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