Results 1 to 2 of 2

Thread: asp rich text access error

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Norwich, UK
    Posts
    405

    asp rich text access error

    i have a rich text box on a form, that is submitted to an access db.
    when i type text the insert works fine. when i copy and paste emails from my
    lotus notes client. it either throws various ado errors or it throws the following

    Provider (0x8000FFFF)
    Catastrophic failure


    which requires a restart of my dev box.

    if however i copy and paste from lotus into notepad and then copy and paste that into my rich textbox the insert works fine. my assumption is that there are characters that access (or ado) cannot handle which f**ks this up.

    this is really beginning to get on my t*ts. so any help would be much appreciated.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    35

    Re: asp rich text access error

    Sounds like it is bad characters killing access...Provide us with code, and the exact text youre typing into the box that causes it to error out. In the mean time, I usually use a function like this to eliminate ugly characters...

    VB Code:
    1. Function RemQuotes(pString)
    2.     if Not IsNull(pString) then
    3.         RemQuotes =  Replace(Replace(Replace(Replace(Replace(pString,";","-"),"'","''"),"&"," and "),"""",""),",","")  
    4.     else RemQuotes = pString end if
    5. End Function
    6.  
    7. Dim myString : myString =  "Apostrophe's mess it up"
    8. Response.write myString & "<BR>"
    9. myString = RemQuotes(myString)
    10. Response.write myString & "<BR>"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width