ActiveConnection doesn't work ...?

Alberto Vera avera at coes.org.pe
Tue Aug 10 01:46:02 CEST 2004


Hello:

I tried to use these lines:
----------------------------------------------------
import win32com.client
conn = win32com.client.Dispatch('ADODB.Connection')
Cmd1 = win32com.client.Dispatch('ADODB.Command')
conn.ConnectionString = "Provider=...."
conn.Open
Cmd1.ActiveConnection = conn      #Error!!!
---------------------------------------------------
But, I got an error in:  Cmd1.ActiveConnection = conn.
Visual Basic can work with Cmd1.ActiveConnection. Is it possible in Python?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040809/074c7d20/attachment.html>


More information about the Python-list mailing list