Results 1 to 3 of 3

Thread: Error while using recordsets to delete records

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    15

    Error while using recordsets to delete records

    I am using the following code to delete a record in vb:

    "If rspmps2("pmpidno").Value = gvr1.Cells("pmpidno").Value Then
    rspmps2.Delete()
    rspmps2.UpdateBatch()"

    where rspmps2 is a ADODB record set and gvr1 is a grid view row. but I keep getting the following error message:

    "Row handle referred to a deleted row or a row marked for deletion."

    Please can somebody assist me in this.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: Error while using recordsets to delete records

    ADODB recordsets are old news...
    you should look into + use ADO.Net

    http://msdn.microsoft.com/en-us/library/aa302325.aspx

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    15

    Re: Error while using recordsets to delete records

    Quote Originally Posted by .paul. View Post
    ADODB recordsets are old news...
    you should look into + use ADO.Net

    http://msdn.microsoft.com/en-us/library/aa302325.aspx
    Hey thanks for the suggestion. will try it out and post the feedback.

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