Thank you for looking into my question/problem!
Here is my senario:
I have the full SQL 200 on my desktop. Server name is BLK00FINA00129.
From my ADP named Cumes.adp I am connected to SQL database named Cume2SQL.
the following is what I am trying to do which is run a stored procedure from a form by pressing a button for example: The connection string is what I am missing. If you can help I would be in your debt, I have been left to my own devise to figure all this out. But with your help I can succeed. Thanks Regards
Private Sub DoSomething
Dim oConn as ADODB.Connection
Dim oComm as ADODB.Command
Set oConn = New ADODB.Connection
Set oComm = New ADODB.Command
oConn.ConnectionString = "Put connection string here"
oConn.Open
Set oComm.ActiveConnection = oConn
oComm.CommandType = adCmdStoredProc
oComm.CommandText = "Append Tables"
oComm.Execute
Here is my senario:
I have the full SQL 200 on my desktop. Server name is BLK00FINA00129.
From my ADP named Cumes.adp I am connected to SQL database named Cume2SQL.
the following is what I am trying to do which is run a stored procedure from a form by pressing a button for example: The connection string is what I am missing. If you can help I would be in your debt, I have been left to my own devise to figure all this out. But with your help I can succeed. Thanks Regards
Private Sub DoSomething
Dim oConn as ADODB.Connection
Dim oComm as ADODB.Command
Set oConn = New ADODB.Connection
Set oComm = New ADODB.Command
oConn.ConnectionString = "Put connection string here"
oConn.Open
Set oComm.ActiveConnection = oConn
oComm.CommandType = adCmdStoredProc
oComm.CommandText = "Append Tables"
oComm.Execute