Results 1 to 3 of 3

Thread: Ugh...run-time error when deleting a record

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    15

    Angry

    When using adoHeader.Recordset.Delete to delete a record, I am getting the following error message: "-2147217887 run-time error" "A given HRow referred to a hard- or soft- deleted row". Any ideas why I am getting this error and how to get rid of it? I only get this on the delete function - the add and update functions work fine.

    Thanks in advance -

  2. #2
    Guest
    are you opening the recordset as dynamic?
    Or
    try to delete records through the connection object?
    Code:
    strSQL = "DELETE FROM tabelname WHERE somefield  = '" & "delete me" & "'"
    Connection.Execute(strSQL)
    then you dont have to deal with the recordset



  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    15
    Thanks, I could give that a try. I was attempting to delete the current record in an ADO recordset just by using the .Delete function...

    I'll try it using the SQL statement and see if it gets me around the problem :-)

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