Finding " in strings

C

colin.marker

Hello,

I am writing a vba program that uses many SQL calls to access. I am
having a problem with people using " instead of putting inches. I can
not figure out how I can trap this in any strings because everything I
try VB interperates it. My problem is when I try to put the strings
like '5" plug" into an SQL querry it messes it up.

Could someone please help me clean up the strings to remove quotes (")
and commas (,) ?
I got it to remove commas by using string = replace(string,",","-")
but I cant do the same with quotes.
 

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