myatia
Programmer
- Nov 21, 2002
- 232
I'm getting this message when I try to update a memo field in a recordset. If I remove the memo field lines from the update statement, the update works just fine. Does anyone have any advice? My code and error messages are below. Let me know if you have any questions.
Thanks,
Misty
ERROR MESSAGE
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Visual FoxPro Driver]Invalid argument value
/career/secure/career_guide/acguide_signup_demographics.asp, line 101
VALUES FROM THE FORM
FirmDesc = 'dfg'
Clind = 'dfgf'
Firmname = 'blah blah'
CODE
Thanks,
Misty
ERROR MESSAGE
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Visual FoxPro Driver]Invalid argument value
/career/secure/career_guide/acguide_signup_demographics.asp, line 101
VALUES FROM THE FORM
FirmDesc = 'dfg'
Clind = 'dfgf'
Firmname = 'blah blah'
CODE
Code:
<%
'// Memo fields
FirmDesc = trim(Request.Form("FirmDesc"))
Clind = trim(Request.Form("Clind"))
'// text field
FirmName = trim(Request.Form("FirmName"))
set rs = server.createobject("ADODB.Recordset")
rs.cursorlocation = adUseServer
rs.cursortype = adOpenKeyset
rs.locktype = adLockOptimistic
fields = "firmother, clind, firmname"
st = "SELECT " & fields & " FROM guidedata WHERE id = " & id
rs.open st, conn, , , adCmdText
rs("firmother") = FirmDesc
rs("clind") = Clind
rs("firmname") = FirmName
rs.Update '<<== LINE 101
rs.close()
%>