Hi All,
Below is my code to delete records:
adodcAllEntries .Recordset.Move First
Do While (adodcAllEntrie s.Recordset.EOF = False)
If adodcAllEntries .Recordset.Fiel ds(0) = selected_id Then
adodcAllEntries .Recordset.Dele te
End If
adodcAllEntries .Recordset.Move Next
Loop
I encountered error when the number of records to delete is >= 4 records.
Ther error is:
--------------------
Run-time error: '_2147467259 (80004005)':
Key column information is insufficient or incorrect. Too many rows were affected by update.
Can anyone help me to solve this?
Below is my code to delete records:
adodcAllEntries .Recordset.Move First
Do While (adodcAllEntrie s.Recordset.EOF = False)
If adodcAllEntries .Recordset.Fiel ds(0) = selected_id Then
adodcAllEntries .Recordset.Dele te
End If
adodcAllEntries .Recordset.Move Next
Loop
I encountered error when the number of records to delete is >= 4 records.
Ther error is:
--------------------
Run-time error: '_2147467259 (80004005)':
Key column information is insufficient or incorrect. Too many rows were affected by update.
Can anyone help me to solve this?
Comment