[python-win32] how to open DAO file with password
Michel Bélanger
michel.belanger at seidel.ca
Thu Feb 12 19:51:46 EST 2004
Hi all,
I want to open a mdb file with the DAO 35 or 36. I am ok to open the
file if it does not have a password. However OpenDatabase failed if the
file is protected by a password.
Here is what I have:
import win32com.client
engine = win32com.client.Dispatch("DAO.DBEngine.35")
db = engine.OpenDatabase(r"config.per", Options='sorbier')
I thought that the Options equal the password would do, but it did not.
What do you suggest?
Michel Belanger
More information about the Python-win32
mailing list