Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internal OLE Automation Error

Status
Not open for further replies.

ElSyd

Programmer
Joined
Jul 8, 2002
Messages
1
Location
CA
Could someone help me with this, please.
This error occurs when the Command Object attempts to execute the stored procedure

Run-time error '-2147217900(80040e14)':
Internal OLE Automation Error
Here's the code:


Dim cmd As ADODB.Command
Dim cnObj As ADODB.Connection
Dim strConnection As String
Dim rs As ADODB.Recordset
Dim intRSCount As Long

strConnection = "Provider=Microsoft.jet.OLEdb.4.0;Data source= l:\desk_top.qa\coroma\data\coroma.mdb;"
Set cnObj = New ADODB.Connection
cnObj.CursorLocation = adUseClient
cnObj.Open strConnection

Set cmd = New ADODB.Command
With cmd
.ActiveConnection = cnObj
'.CommandText = "sp_Role"
.CommandText = "spUpdateRoleOne"
.CommandType = adCmdStoredProc
.Execute
End With
'Set rs = cmd.Execute
'intRSCount = rs.RecordCount
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top