Using DAO and Python

WaldekO osuchw at ecn.ab.ca
Mon Apr 24 09:16:11 EDT 2000


dsavitsk <dsavitsk at e-coli.net> wrote in message
news:bMHM4.23114$fF5.684678 at news1.rdc1.il.home.com...

> here is what i have tried (esentially following the example on pg 252 of
> python programming on win32)
> 1. ran makepy and selected microsoft dao 3.6 from the list
> 2. in PythonWin typed
> >>> import win32com.client
> >>> daoengine = win32com.client.Dispatch('DAO.DBEngine')

You did not provide full name of DBEngine.  Try:

daoengine = win32com.client.Dispatch('DAO.DBEngine.36')

For a sample of using MSAccess refer to:
http://starship.python.net/crew/bwilk/access.html







More information about the Python-list mailing list