myatia
Programmer
- Nov 21, 2002
- 232
I'm getting an "invalid argument value" error whenever I try to update a record, regardless of the values I try to enter. Here's a sample of my code that's getting the error:
I have no idea why I'm getting this error. It seems like a pretty basic update to me. Any help would be greatly appreciated.
Thanks,
Misty
Code:
ID = Request.Form("id")
set rs = server.createobject("ADODB.Recordset")
rs.cursorlocation = adUseServer
rs.cursortype = adOpenForwardOnly
rs.locktype = adLockOptimistic
st = "SELECT * FROM GuideData WHERE id = " & ID
rs.open st, connq, , , adCmdText
'' indexname is a character type, width 37
rs("indexname") = "your name here"
rs.Update
rs.close()
I have no idea why I'm getting this error. It seems like a pretty basic update to me. Any help would be greatly appreciated.
Thanks,
Misty