Incorrect syntax error

Results 1 to 3 of 3

Thread: Incorrect syntax error

  1. #1
    pmorales Guest

    Default Incorrect syntax error

    I have an ASP form that dumps into a SQL databbse. I keep getting an Incorrect syntax message whenever I try to submit a word that has a ' in it. Can anybody tell me why?

  2. #2
    Join Date
    Dec 1969

    Default you need..

    to paste code.

  3. #3
    Join Date
    Dec 1969

    Default RE: Incorrect syntax error

    use this function to add an extra apostrophe...SQL will ignore but without will create error.<BR><BR>FUNCTION fcnFixApost(str)<BR> fcnFixApost = replace(str,"&#039;","&#039;&#039;")<BR>END FUNCTION<BR><BR>Then call the function like<BR><BR>Email = fcnFixApost(Trim(Request.Form ("Email")))

Posting Permissions

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