win7 64bit [Microsoft][ODBC Driver Manager] Datasource name not found and default not specified

Problem Description:

  The VBA program connects to the Access database, and the related macro is executed in Excel, prompting [Microsoft][ODBC Driver Manager] The data source name was not found and the default was not specified

solution:

  1. Reinstall the AccessDatabaseEngine_X64 program (you can perform the second step first, if not, install it again)

  2. Modify the VBA program

    before fixing

conn.Open "Driver=Microsoft Access Driver (*.mdb);DBQ=" & ThisWorkbook.Path & "\mcb.mdb", "msaccess;pwd=123456" 

    after modification

conn.Open "Driver=Microsoft Access Driver (*.mdb, *.accdb);DBQ=" & ThisWorkbook.Path & "\mcb.mdb", "msaccess;pwd=123456" 

Reference link:

  http://blog.sina.com.cn/s/blog_425e09cb0101lamk.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324734660&siteId=291194637