Hi,
I'm using the following code to open a recorset to update it.
When using this code, I get a ADODB.Recordset error '800a0cb3'
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype
When I use the ORDER BY clause, the cursor type and lock type change to adForwardOnly and adLockReadOnly, so the recordset couldn't be opened for updating.
Is it a normal behaviour? I need the recordset to be sorted in order to update the good records. If I remove the ORDER BY, everything is ok.
Thanks for your help!
I'm using the following code to open a recorset to update it.
Code:
strSQL = "SELECT * FROM data WHERE Folder='" & sFolder & "' ORDER BY Title ASC "
objRS.Open strSQL, objConn, adOpenDynamic, adLockOptimistic
objRS.Fields("title") = "test"
objRS.Update
When using this code, I get a ADODB.Recordset error '800a0cb3'
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype
When I use the ORDER BY clause, the cursor type and lock type change to adForwardOnly and adLockReadOnly, so the recordset couldn't be opened for updating.
Is it a normal behaviour? I need the recordset to be sorted in order to update the good records. If I remove the ORDER BY, everything is ok.
Thanks for your help!