Hi All,
Below is my code to delete records:
adodcAllEntries.Recordset.MoveFirst
Do While (adodcAllEntries.Recordset.EOF = False)
If adodcAllEntries.Recordset.Fields(0) = selected_id Then
adodcAllEntries.Recordset.Delete
End If
adodcAllEntries.Recordset.MoveNext
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?