Following is the configuration: 1.Python - Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 2.MS Access 2016 MSO(16.0.12624.20348) 64 bit 3.Microsoft Access Driver (*.mdb, *.accdb) 16.00.4513.1000 4.Installed Microsoft Access Database Engine 2016 Redistributable
Facing the error while trying to create a connection:
import pyodbc
conn = pyodbc.connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\Users\tejas\Documents\First.accdb;') cursor = conn.cursor()
Error: Traceback (most recent call last): File "C:\Users\tejas\eclipse-workspace\HelloWorld\DB\Insert.py", line 3, in conn = pyodbc.connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\Users\tejas\Documents\First.accdb;') pyodbc.Error: ('HY000', '[HY000] [Microsoft][ODBC Microsoft Access Driver] The database you are trying to open requires a newer version of Microsoft Access. (-1073) (SQLDriverConnect); [HY000] [Microsoft][ODBC Microsoft Access Driver] The database you are trying to open requires a newer version of Microsoft Access. (-1073)')
I have gone through other similar questions and tried various options but no luck so far. Any help would be appreciated.