jordanking
Programmer
- Sep 8, 2005
- 351
Hello,
Does Access 2003 ADO sql support the "ESCAPE" word
ie
This is not working for me and I am just wondering if the word escape is even supported or if I am having syntax issues.
The reason is, i am quering a txt field, changing that field and then executing an update query with the new value into the original table. As a result i have to create the update query sql dynamically. However, sometimes the new text field contains an apostrophe and it breaks the syntax by adding an unmatched single quote.
Thanks in advance
JK
Does Access 2003 ADO sql support the "ESCAPE" word
ie
Code:
SELECT tblInstalation.idsInstID, tblInstalation.txtAddress
FROM tblInstalation
WHERE (((tblInstalation.txtAddress) Like '%o\'c%') ESCAPE '\';
The reason is, i am quering a txt field, changing that field and then executing an update query with the new value into the original table. As a result i have to create the update query sql dynamically. However, sometimes the new text field contains an apostrophe and it breaks the syntax by adding an unmatched single quote.
Thanks in advance
JK