Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in Deleting a Recordset row
Message
De
29/06/2000 04:39:14
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Error in Deleting a Recordset row
Divers
Thread ID:
00386323
Message ID:
00386323
Vues:
50
I hit error message as follows(error message trap by using Err.Desc):

Error # -2147467257 Microsoft Cursor Engine
Insufficient or incorrect key column information;
too many rows affected by update.

This error happened only when I add 2 or more similar rows of
records into the Recordset and trying to Delete one of the rows
from the Recordset.
In other words, the error happened only when I Delete the row.
The following is my code to declar the Recordset settings:

Set rsTmp = New ADODB.Recordset
With rsTmp
.CursorLocation = adUseClient
.LockType = adLockPessimistic
.CursorType = adOpenKeyset
.ActiveConnection = cnn1
.Open "SELECT * FROM DataTable"
End With
Set DataGrid1.DataSource = rsTmp
Répondre
Fil
Voir

Click here to load this message in the networking platform