Results 1 to 4 of 4

Thread: ADO ERROR: Row cannot be located for updating. Some values may have been changed sinc

  1. #1

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    ADO ERROR: Row cannot be located for updating. Some values may have been changed sinc

    Hello all,

    i have problem when i update my record from database (i used Ms Access Database)
    this the message error:
    Row cannot be located for updating. Some values may have been changed since it was last read.

    can anybody give the solution for this ?

  2. #2
    New Member VB-Nerd's Avatar
    Join Date
    Jan 2008
    Location
    KS
    Posts
    8

    Re: ADO ERROR: Row cannot be located for updating. Some values may have been changed sinc

    can you put a little code snippet up of what you are doing on the save and how you are connecting the the rs.

    does this same method work in other parts of the app?

    is this the only location of where things are changing?

  3. #3
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267

    Re: ADO ERROR: Row cannot be located for updating. Some values may have been changed sinc

    Without showing any code, it's gonna be difficult.

    Maybe this happens because you are updating (or batchupdating) many records at the same time. Try using objRecordset.Requery to update all the records in the recordset by re-executing the query.

    Or maybe you have mistakes in your primary keyfield. Is it set to auto-enumerate? Or do you compose that field yourself?

    They're just lucky guesses, but maybe they're worth something. If not, be a little bit more descriptive. ;-)

    Good luck!
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

  4. #4
    Frenzied Member Campion's Avatar
    Join Date
    Jul 2007
    Location
    UT
    Posts
    1,098

    Re: ADO ERROR: Row cannot be located for updating. Some values may have been changed sinc

    Try changing the pointer (indexer? Help me out here. I don't have VB in front of me) to adUseClient. This is how I've solved this pesky error before.

    edit:

    Okay, here is the item I'm trying to say:

    objRS.CursorLocation = adUseClient
    Last edited by Campion; Jan 31st, 2008 at 06:20 PM.

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