for row in curSQL.execute('SELECT MAX(thisDate) FROM [' + _.getName() + ']'):
    xDateTime = row[0]
day = xDateTime.date()
PypyODBC with parameters: [ODBC Microsoft Access Driver] Too few parameters. Expected 4