T
Tom
Hello
I'm sure that most of the Access programmers know that problem. When a
string contains an apostrophe or a double quote, the FindFirst-function
fails. At the moment, I'm using the following command:
rs.FindFirst "Destination='" & Replace("Côte d'Azur", "'", "''") & "'"
This code works fine, but if the string search contains an apostrophe, the
FindFirst function fails. Well I can change the code as follows
rs.FindFirst "Destination=""" & Replace("Côte d'Azur", """", """""") & """"
(double quotes instead of apostrophes)
but now I have the same problem if the search-string contains a double
quote. How to solve this? EVERY COMBINATION should be found with the
FindFirst-function? Any help would be appreciated.
Tom
I'm sure that most of the Access programmers know that problem. When a
string contains an apostrophe or a double quote, the FindFirst-function
fails. At the moment, I'm using the following command:
rs.FindFirst "Destination='" & Replace("Côte d'Azur", "'", "''") & "'"
This code works fine, but if the string search contains an apostrophe, the
FindFirst function fails. Well I can change the code as follows
rs.FindFirst "Destination=""" & Replace("Côte d'Azur", """", """""") & """"
(double quotes instead of apostrophes)
but now I have the same problem if the search-string contains a double
quote. How to solve this? EVERY COMBINATION should be found with the
FindFirst-function? Any help would be appreciated.
Tom