odbc_conn_str = (
    'DRIVER={Microsoft Access Driver (*.mdb)};DBQ=%s;UID=%s;PWD=%s' % (
    db_file, user, password))
odbc_conn_str = (
    'DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=%s;UID=%s;PWD=%s' %
    (db_file, user, password))
conn = pyodbc.connect(odbc_conn_str)
MS Access library for python