Apr 26, 2004 #1 Kenny62 Programmer Mar 3, 2004 54 GB HI - how do you escape the apostrophe and quote symbol in a text field when used in a sql statement. i.e. SELECT name FROM mytable WHERE names='qwerty's' Will this escape sequence work against an Access DB? Thanks in advance. Ken
HI - how do you escape the apostrophe and quote symbol in a text field when used in a sql statement. i.e. SELECT name FROM mytable WHERE names='qwerty's' Will this escape sequence work against an Access DB? Thanks in advance. Ken
Apr 26, 2004 #2 dbomrrsm Programmer Feb 20, 2004 1,709 GB SELECT name FROM mytable WHERE names='qwerty''s' Upvote 0 Downvote
Apr 26, 2004 #3 amorous Programmer Sep 5, 2003 1,008 US You can use the replace function which does same thing as suggested by DBomrrsm. fieldname=Replace(fieldname,"'","''") Thanks VJ Upvote 0 Downvote
You can use the replace function which does same thing as suggested by DBomrrsm. fieldname=Replace(fieldname,"'","''") Thanks VJ
Apr 28, 2004 Thread starter #4 Kenny62 Programmer Mar 3, 2004 54 GB Thanks - all is well. Upvote 0 Downvote