[python-win32] FW: Problems with recordset object
Tim Roberts
timr at probo.com
Thu Sep 2 18:30:23 CEST 2010
Dardo Schuster Glez wrote:
> Dear Sirs
>
> I was programming many years with delphi/sql server and now i am
> looking python with your ado library to migrate . I am making my first
> ado program with python using python 3.1 and pythonwin but i have a
> problem : recordset can´t acces fields data i send you a sample and
> the answer from python
> ...
> while not rs.EOF:
> print (rs.fields("nombre"))
> # Move to the next record in the RecordSet
> rs.MoveNext()
> ...
> AttributeError: '<win32com.gen_py.Microsoft ActiveX Data Objects 2.8
> Library._Recordset instance at 0x26371984>' object has no attribute
> 'fields'
>
> Which is the problem ???
The problem is that the collection property is spelled "Fields", not
"fields".
> Please answer a soon as posible
As a general rule, it not polite to make a request like that. We are
all unpaid volunteers here. If someone knows the answer, they'll
respond as soon as they read your question. If no one knows the answer,
no one will respond. No one is going to read your message and say "I
think I'll wait until tomorrow to answer this."
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list