Your error suggests that your Data Source Name (DSN) is not found, and there is no default driver specified by you on where to find it.
When using Python, the 'pyodbc' library is needed to connect to the Access database. Make sure that you have the 'pyodbc' library installed using your console, More on this as a tutorial at
pyodbc | Tutorial[
^] -
pip install pyodbc
Your code should then look something like the following to connect -
import pyodbc
db_path = r'H:\MasterMindAcc\Sys\NetNo.accdb'
password = 'AaBbCc'
conn_str = f'DRIVER={{Microsoft Access Driver (*.mdb, *.accdb)}};DBQ={db_path};PWD={password}'
try:
conn = pyodbc.connect(conn_str)
conn.close()
except Exception as e:
print(f"Error: {e}")