[python-win32] Re: FetchProgress event problem

Roger Upole rwupole at msn.com
Fri Dec 23 10:08:13 CET 2005


It's likely your recordset and connection objects are going out
of scope before they get a chance to fire any events.  As soon as
the function exits, both of the COM objects will be released.

Also, you might want to use the named constants from
win32com.client.constants in place of hardcoded values.
rs.CursorLocation=win32com.client.constants.adUseClient
makes the intent much clearer.

     hth
       Roger



More information about the Python-win32 mailing list