My experience with the comtypes module was pretty good. You will probably want to have access to DAO / ADO / VBA to access the methods that are used, however, since the comtypes module dynamically generates COM library wrappers, so there is no built-in documentation.
Here is a brief example of how this works. (Go and check for yourself.)
from comtypes.client import CreateObject access = CreateObject('Access.Application') from comtypes.gen import Access DBEngine = access.DBEngine db = DBEngine.CreateDatabase('test.mdb', Access.DB_LANG_GENERAL)
(Moved the second import statement after the CreateObject line for cases where the Python wrapper module for the sample library did not previously exist.)
source share