lloydanderson
IS-IT--Management
Hello,
I am trying to set up VB script in excel, using ActiveX 2.0
and have had no joy! Any helpful suggestions? I copied this off of MS
Option Explicit
' Declare object variables for the Connection and Recordset objects.
Private cnMrkseg As ADODB.Connection
Private rsMrkseg As ADODB.Recordset
Private Sub Worksheet_Activate()
' Instantiate the object.
Set cnMrkseg = New ADODB.Connection
' Instantiate the Recordset object, then set its properties.
Set rsMrkseg = New ADODB.Recordset
cnMrkseg.ConnectionString = _
"Provider=SQLOLEDB.1;Password=Market;" & _
"Persist Security Info=True;User ID=Market;" & _
"Initial Catalog=DailyMktSegnewSql;Data Source=Jdvproxy"
cnMrkseg.Open
Bombs with '3706' ADO could not find the specified provider
Lloyd
I am trying to set up VB script in excel, using ActiveX 2.0
and have had no joy! Any helpful suggestions? I copied this off of MS
Option Explicit
' Declare object variables for the Connection and Recordset objects.
Private cnMrkseg As ADODB.Connection
Private rsMrkseg As ADODB.Recordset
Private Sub Worksheet_Activate()
' Instantiate the object.
Set cnMrkseg = New ADODB.Connection
' Instantiate the Recordset object, then set its properties.
Set rsMrkseg = New ADODB.Recordset
cnMrkseg.ConnectionString = _
"Provider=SQLOLEDB.1;Password=Market;" & _
"Persist Security Info=True;User ID=Market;" & _
"Initial Catalog=DailyMktSegnewSql;Data Source=Jdvproxy"
cnMrkseg.Open
Bombs with '3706' ADO could not find the specified provider
Lloyd