ActiveConnection doesn't work ...?

Alberto Vera avera at
Tue Aug 10 01:46:02 CEST 2004


I tried to use these lines:
import win32com.client
conn = win32com.client.Dispatch('ADODB.Connection')
Cmd1 = win32com.client.Dispatch('ADODB.Command')
conn.ConnectionString = "Provider=...."
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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list