need help handling ' when building sql

SteveInBeloit

Well-known member
Joined
May 22, 2006
Messages
132
Programming Experience
10+
I am building a where statement in vb .net.
"Where myTextField = '" & me.ddl.selectedvalue & "''"

work except for when there is an apostrophy in the selected value, such as
"Steve's books"

What do I do?
Thanks
 
read the PQ link in my signature. then read the DW2 link to understand how to make the IDE build your queries for you - it does it properly ;)
 
cjard.
I have used PQs before - based on your link!! This time I am building dynamic SQL based on 10 dropdownlists the user may or may not have clicked on. Some are equals, and some are likes. I didn't know if I could do that.
 
Back
Top