I believe the enter button should not store a pipe.
I run this function every time I do an insert, will fix your problem Id say:
Function StoreText(theText)
StoreText = ""
on error resume next
StoreText = CStr(theText)
if (len(StoreText) > 0) Then
StoreText = Replace(StoreText, """", """, 1, -1, 1)
StoreText = Replace(StoreText, "'", "''", 1, -1, 1)
StoreText = Replace(StoreText, vbCrLf, "<BR>", 1, -1, 1)
end if
End Function
When you do am insert also run the trim function, should be run on all inserts and updates where the value has come from user input, Use it like so:
trim(storeText(request.form("formElementName")
Wind is your friend
Matt
|