ADO example code failed:hlp!

Hoon Yoon hyoon at
Thu Aug 5 16:26:14 EDT 1999

Running Christian's code, I get following error message. What am I doing
wrong? It's same code, but the constants do not contain adModeReadWrite.
Pls help!
Thanks much in Adv,

import win32com.client
from win32com.client import constants
db.Mode = constants.adModeReadWrite
db.Open("Access DB")
db.Execute("create table mist (name varchar, wert long)")
rs.Open("mist", db, constants.adOpenDynamic, -1, constants.adCmdTable )

Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> ## working on region in file c:\tmp\python-aDA-KJ...
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "c:\tmp\python-aDA-KJ", line 4, in ?
    db.Mode = constants.adModeReadWrite
  File "C:\Python\win32com\client\", line 72, in __getattr__
    raise AttributeError, a
AttributeError: adModeReadWrite
S. Hoon Yoon (Quant) Merrill Lynch Equity Trading, 
yelled at hoon at
"Miracle is always only few standard deviations away, but so is
* Expressed opinions are often my own, but NOT my employer's.
"I feel like a fugitive from the law of averages."    Mauldin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 202 bytes
Desc: Card for Hoon Yoon
URL: <>

More information about the Python-list mailing list