I found solution in the above thread but it did not work in my case. Is there any other way of solving this apostrophe problem?
apostrophes in names
Collapse
X
-
apostrophes in names
I found solution in the above thread but it did not work in my case. Is there any other way of solving this apostrophe problem?Tags: None -
Originally posted by StephanieCathttp://www.thescripts. com/forum/thread598894.ht ml
I found solution in the above thread but it did not work in my case. Is there any other way of solving this apostrophe problem?
Code:Public Function adhHandleQuotes(ByVal varValue As Variant, Optional Delimiter As String = "'") As Variant ' Replace all instances of a string delimiter with TWO instances, ' thereby handling the darned quote issue once and for all. Also, ' surround the string with the delimiter, as well. ' Returns Null if the String was Null, otherwise ' returns the String with all instances of strDelimiter ' replaced with two of each. adhHandleQuotes = _ strDelimiter & _ Replace(varValue, strDelimiter, strDelimiter & strDelimiter) & _ strDelimiter End Function
-
Comment