win32com and ADO

Achim Domma (Procoders) domma at procoders.net
Wed May 11 14:49:44 EDT 2005


Chris Curvey wrote:

> result = conn.execute("select * from foo")
> 
> while not result.EOF:
>     doSomething()
>     result.MoveNext()
> 
> 'tuple' object has no attribute EOF

The recordset you are looking for is a element of the tuple. Out of my 
head I would say it's element 1, so you have to write:

result = conn.execute("select * from foo")[1]

regards,
Achim



More information about the Python-list mailing list