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: