Reputation:
I am receiving this error message but can not see the problem, anyone spot it?
No value given for one or more required parameters.
set postRs=server.CreateObject("adodb.recordset")
readsql = "UPDATE [post] SET pos_content=bob WHERE pos_ID = 136"
postRs.Open readsql, conx, adOpenKeyset, AdLockOptimistic
Thanks
Upvotes: 0
Views: 595
Reputation: 13474
Try like this.Put ' for string value
readsql = "UPDATE [post] SET pos_content='bob' WHERE pos_ID = 136"
Upvotes: 0
Reputation: 204756
You need quotes around strings
readsql = "UPDATE [post] SET pos_content = 'bob' WHERE pos_ID = 136"
here---------^---^
Upvotes: 1