Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Apostrophie Problem
You have to do an instr() and replace any single quotes with two single quotes.
"Perry Hemmings" <perry.hemmings_at_btinternet.com> wrote in message
news:944vhs$fl8$1_at_uranium.btinternet.com...
> Hello All
>
> I am running Oracle 8 with a Visual Basic frontend, my program falls over
> when an Apostrophe is in the name i.e. O'Brien and my search needs
adjusting
> can anyone advise me on how to achieve this??
>
> Res = "SELECT Lastname FROM Customer WHERE Lastname = txtTEXTBOX"
>
> Thanks in advance
>
> Perry
>
> Please e-mail your response to perry.hemmings_at_volteurope.com as well as
> responding to the NG
>
>
Received on Wed Jan 17 2001 - 15:10:16 CST