CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2001
    Posts
    16

    Deleting a record from recordset

    I am trying to delete a record from the recordset. I am using a transaction. After deleting a record & commiting I am getting the error - <A given HROW referred to a hard- or soft-deleted row.> - The record gets deleted from the database also. The delete works perfectly for some forms and is not working for some other forms.



  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Deleting a record from recordset

    maybe this is not the point, but try refreshing recordset after the delete

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Mar 2001
    Posts
    16

    Re: Deleting a record from recordset

    Thanks for the reply.

    As soon as I write recordset.delete, the AbsolutePosition and Bookmark of the recordset shows me the said error. I am using Requery method of the recordset but the control is not reaching there.

    Thanks
    Hitesh


  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Deleting a record from recordset

    after delete, before invoke absloute position, try
    yourrecordest.refresh

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured