Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single quote in insert statement

Status
Not open for further replies.

JustWondering

Technical User
Jun 28, 2003
57
0
0
US
Hi,

When I tried to insert a value with a postrophe, it became "" in my table.


name= Kelly's Pan

strSQL="INSERT INTO mytable " & _
"VALUES ('" & name & "','" & email & "') "

How can I avoid this and still doesn't effect other values(without apostrophe)?

Thanks
 
replace them
there's a few threads here in this forum in replace the quotes

_____________________________________________________________________
onpnt2.gif

[bdaycandle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top