View Single Post
  #1 (permalink)  
Old 12-04-05, 12:54 PM
daint daint is offline
New Member
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Error Updating Access DB

Hello,

I'm getting the same error as a recent post "ADODB.Recordset error '800a0cc1' " but felt I should post my own request rather than hijack theirs.

I can add to the database and view the database through forms on my website, but when it comes to updating, it gives me an error

'Item cannot be found in the collection corresponding to the requested name or ordinal. '

The code in my Update example is

Set RS = oConn.Execute("UPDATE news SET desc='" & request("update_text") & "' Where id=" & id & ";")

the add command that works without error is

Set RS = oConn.Execute("Insert into news values (" & id & ", '" & t_Date & "', '" & request("update_title") & "', '" & request("update_text") & "', 'Yes')")

I have checked and double checked that there is a field called desc, when I update another field in the table it works fine. I had the same problem with another db, but made a new field, copied the data over and all seemed to work ok, but don't want to have to do this for every db I ever do.

The permissions are all set ok, desc is a memo field, but due to length, I'm unable to make it anything else (just in case this may be the problem)

Hope someone can help

Thanks
Reply With Quote