Utilizo la siguiente conexion
With rstLock ' Open the table for editing by using
pessimistic locking.
If .State = adStateClosed Then
.CursorLocation = adUseServer
.ActiveConnection = cnxConexionGeneral 'Conexión
activa utilizada
.Properties("IRowsetIdentity") = True 'Utilizada
para verificar que la columna cambió
.CursorType = adOpenKeyset
' .LockType = adLockBatchOptimistic
.LockType = adLockPessimistic
.Open strSQL, , , , adCmdText 'Importante: no
colocar la coneción aqui
end if
Despues adiciono un registro en blanco con
rstLock.AddNew
Pero si intento cancelar la actualización con
rstLock.CancelBatch (lo curioso es que se
uso .CursorLocation = adUseServer en la conexion anterior
si funciona)
me el siguiente error
Error -2147217888 (8004e20) en tiempo de ejecución:
Consumer's event handler called a non-reetranet method in
the provider.
El recordset esta pegado a un datagrid
Ayuda
Leer las respuestas