Hi,
I have an error. When i execute the following code, i get the error at the stmt, ars.Update.
Run time error '-2147217864 (80040e38)'
Row cannot be located for updating. Some values may have changed since it was last read.
But when i am trying to debug this code, i do not get any errors.
What is this?
I appreciate the time taken to help me out.
I have an error. When i execute the following code, i get the error at the stmt, ars.Update.
Run time error '-2147217864 (80040e38)'
Row cannot be located for updating. Some values may have changed since it was last read.
But when i am trying to debug this code, i do not get any errors.
Code:
aSQL = "SELECT Status.* FROM "
aSQL = aSQL & " Status LEFT JOIN Items ON "
aSQL = aSQL & " Status.ItemID = Items.ID WHERE "
aSQL = aSQL & " Status.LoginID= " & UserID
aSQL = aSQL & " AND Items.Category = " & Header
aRS.CursorLocation = adUseClient
aRS.Open aSQL, DSN, adOpenDynamic, adLockOptimistic
Do While Not aRS.EOF()
aRS.Fields("Status") = Stat
aRS.Update
aRS.MoveNext
Loop
aRS.Close
What is this?
I appreciate the time taken to help me out.