import csv, pyodbc

# set up some constants
MDB = 'D:\DataManager\DataDB.mdb'; DRV = '{Microsoft Access Driver (*.mdb)}';


# connect to db
con = pyodbc.connect('DRIVER={};DBQ={}'.format(DRV,MDB))
cur = con.cursor()

# run a query and get the results
SQL = 'SELECT * FROM LeakTesterData;' # your query goes here

rows = cur.execute(SQL).fetchall()
print(rows)
cur.close()
con.close()
