Forum Moderators: open
When I type anything in the memo field that contains a CR, upon submit, I get this error:
# Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Visual FoxPro Driver]Command contains unrecognized phrase/keyword.
/request.asp, line 90
if I do not hit "enter", it does not give this error, and if I just let it wrap, it appears not to error. Anyone?
strValue = Replace(request("Details"),Chr(10),"")
strValue = Replace(request("Details"),Chr(13),"<BR>")
Ok. I did that - verbatim - near the top of the VB script. Do I need to replace strValue with strDetails or whatever? Also, is there a particular place that I need to put this code?
Also, someone suggested creating another table to hold the memo field. What to you think about that?
1. Where do I put the code
2. Do I need to replace strValue with strDetails?
I have it currently exactly as you typed it near the beginning of the VB script. It doesn't seem to fix the problem. I have an MS KB article (208208) that says that I have to use the AppendChunk() method in order to make it work through the ODBC driver. I seriously appreciate your help!
It HAS to be something with replacing the Chr(10) and (13) codes. I think I just may have it wrong.
Here's what I've got:
strDetails=Request.Form("Details")
strDetails=Replace(request("Details"),Chr(10),"")
strDetails=Replace(request("Details"),Chr(13),"<BR>")