Updating a record

Discussion in 'C#' started by jhodgso4, Sep 24, 2010.

  1. #1
    Hi
    I hope someone can help. We've just taken over a site written in ASP. Unfortunately we specialise in PHP and we are struggling. On one particular function, two tables in the database are updated but I am getting the error below;

    Microsoft Cursor Engine error '80040e38'

    Row cannot be located for updating. Some values may have been changed since it was last read.

    /database/database.asp, line 112


    and the code that this is refering to is here;

    recordSet.Update
    Set tableFields = CreateObject("Scripting.Dictionary")

    I can provide any information needed but I didnt want to bombard with irrelevent code.

    Thank you in advance for any help.
    Joe
     
    jhodgso4, Sep 24, 2010 IP
  2. sellinghqlinks

    sellinghqlinks Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    check oracle related sites for updating and all !!!
     
    sellinghqlinks, Oct 24, 2010 IP
  3. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    You may need to set the 'CursorType' and 'LockType' when creating the recordset object:
    
                    objRs = CreateObject("ADODB.Recordset")
                    objRs.CursorType = 1
                    objRs.LockType = 3
    
    Code (markup):
    It would also depend on what sql has been executed when you are trying to update the current record.
     
    camjohnson95, Nov 12, 2010 IP