Why can't I connect to my access database

我怕爱的太早我们不能终老 提交于 2019-12-04 17:01:22

The Jet.OLEDB.4.0 provider works for MDB format database files. For the newer ACCDB format (MyData.accdb), you need the ACE provider.

For Access 2007, there was only a 32 bit version of the ACE provider. But starting with Access 2010, there are separate 32 and 64 bit versions. You need the one which matches the bit mode in which your VBScript runs.

Try changing your connection string to use the ODBC. Per Connection Strings

Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;
Uid=Admin;Pwd=;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!