Error en el recordset. Ayuda por favor...

13/04/2004 - 00:24 por Junior | Informe spam
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

#1 Fran Arreciado [MS]
15/04/2004 - 13:02 | Informe spam
A ver si este articulo te puede ayudar. Mira las alternativas que te ofrece:

195638 PRB: IRowsetNotify Error with ADO Data Control and ADO Recordset
http://support.microsoft.com/?id5638

Un saludo,
Fran

Este mensaje se proporciona "como está" sin garantías de ninguna clase, y no
otorga ningún derecho

"Junior" wrote in message
news:18bdf01c420dc$e46673b0$
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

Preguntas similares