DB access to names containing '

G

G.F.Schl

In an ASP I read an MS-Access DB containing names. I tried everything I can
imagine to use """ instead of '" including defining a constant (X37) but it
either fails with an exec error or fails when names containing ' are processed.
MY current code is:
sqltemp="select * from logindata where lastname='"
sqltemp=sqltemp & myname & "'"
(It doesn't work when I try to make it with one statement) I am using FP2002.
Can anyone tell me how to code this for handling names that contain '.
Thanks 10to6
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top