Results 1 to 13 of 13

Thread: sql RS.delete event help (error runtime 214746259)(RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Fanatic Member ksuwanto8ksd's Avatar
    Join Date
    Apr 2005
    Posts
    636

    Resolved sql RS.delete event help (error runtime 214746259)(RESOLVED)

    I use ADO to access SQL table as database and I have problem when objRS.delete is access. This command is to remove all record in the table.

    "Error run time 214746259(80004005)
    Key column information is insufficent or incorrect.Too many row were infected by update"

    when use in Access table is run smootly.I dont know what's up here. If any ever experiences and know exactly what's up here can give comment is greatly appreciated.thanks in advance
    VB Code:
    1. Dim objConnection As ADODB.Connection
    2. Dim objRS As ADODB.Recordset
    3.  
    4. Private Sub Command3_Click()
    5.  
    6. If objRS.RecordCount = 0 Then
    7.     MsgBox "OUW. NO RECORD!"
    8.     Exit Sub
    9. Else
    10. objRS.MoveFirst
    11.  
    12. Do While Not objRS.EOF
    13.     objRS.MoveFirst
    14.     [B]objRS.Delete[/B]
    15.     objRS.Update
    16.    
    17.     objRS.MoveNext
    18. Loop
    19.     MsgBox "Finish,Hm"
    20. End If
    21. End Sub
    Best Regards
    Kamus
    Last edited by ksuwanto8ksd; Jun 11th, 2005 at 01:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width