Hi kamuixkotori,
You need to replace single quotes in your SQL String with two single quotes...
eg: strSQL = replace(strSQL, "'", "''")
that's double quote, single quote, double quote
then double quote, two single quotes, double quote
Hope this helps.
Damian.
> Hello,
>
[quoted text clipped - 9 lines]
>
> 'John\'s house is in Dalas'
kamuixkotori - 23 Oct 2006 08:46 GMT
In the SQL view of Microsoft Access it can work.. but in java runtime it give
'java.sql.SQLException: General error' error message.. how come?
> Hi kamuixkotori,
>
[quoted text clipped - 22 lines]
> >
> > 'John\'s house is in Dalas'
kamuixkotori - 23 Oct 2006 09:47 GMT
Hmm.. btw.. it can work already.. thanks a lot!
> In the SQL view of Microsoft Access it can work.. but in java runtime it give
> 'java.sql.SQLException: General error' error message.. how come?
[quoted text clipped - 25 lines]
> > >
> > > 'John\'s house is in Dalas'