Article ID: 190108
Article Last Modified on 5/17/2007
Dim con As ADODB.Connection
Dim com As ADODB.Command
Dim res As ADODB.Recordset
Dim par As ADODB.Parameter
Set con = New ADODB.Connection
Set com = New ADODB.Command
Set res = New ADODB.Recordset
con.ConnectionString = "dsn=nwind;usid=admin;pwd=;"
' Comment the next line to go around the Update error
con.CursorLocation = adUseClient
con.Open
set com.ActiveConnection = con
com.CommandText = "{call Invoices}"
com.CommandType = adCmdText
res.Open com, , adOpenStatic, adLockOptimistic, -1
res(1) = "test"
res.Update 'This line causes the error.
res.Close
con.Close
Set res = Nothing
Set com = Nothing
Set con = NothingKeywords: kbado260fix kbbug kbdatabase kbfix kbjet kbmdacnosweep kbnoupdate KB190108