Anthony1312002
Programmer
I'm using a CleanInput function to post data to fields in a db table. Everything works fine until I try to post to a memo field. For example, in the case below the memo field "ClientName" is ignored while the rest of the form is processed. Text fields and numerical fields are updated with no problem. What changes need to be made to make it possible to update the memo field as well? By the way, this is an Access db.
'This function is used to reduce the number of times we have to type Request.Form and Replace functions
Function CleanInput(strReqName)
CleanInput = Replace(Request.Form(strReqName),"'","''")
End Function
sql_update = "UPDATE CustomerMatrix SET ClientName = '" & CleanInput("txtClientName_" & id) & "', " & _
"AvgMonthlyVol = '" & CleanInput("txtAvgMonthlyVol_" & id) & "', " & _
'This function is used to reduce the number of times we have to type Request.Form and Replace functions
Function CleanInput(strReqName)
CleanInput = Replace(Request.Form(strReqName),"'","''")
End Function
sql_update = "UPDATE CustomerMatrix SET ClientName = '" & CleanInput("txtClientName_" & id) & "', " & _
"AvgMonthlyVol = '" & CleanInput("txtAvgMonthlyVol_" & id) & "', " & _