Jun 27, 2007 #1 colezpapa Programmer Feb 26, 2007 86 US Using findfirst, I need to handle apostrophes. rsChar.FindFirst "[LETTER] = " & "'" & current_char & "'" How would I re-work this to handle the apostrophe?
Using findfirst, I need to handle apostrophes. rsChar.FindFirst "[LETTER] = " & "'" & current_char & "'" How would I re-work this to handle the apostrophe?
Jun 27, 2007 #2 Remou Technical User Sep 30, 2002 13,030 BE Two ideas: [tt]rs.FindFirst "[LETTER] = " & Chr(34) & current_char & Chr(34) Debug.Print rs![LETTER] [/tt] [tt]rs.FindFirst "[LETTER] = '" & Replace(current_char, "'", "''") & "'" Debug.Print rs![LETTER][/tt] Upvote 0 Downvote
Two ideas: [tt]rs.FindFirst "[LETTER] = " & Chr(34) & current_char & Chr(34) Debug.Print rs![LETTER] [/tt] [tt]rs.FindFirst "[LETTER] = '" & Replace(current_char, "'", "''") & "'" Debug.Print rs![LETTER][/tt]
Jun 27, 2007 Thread starter #3 colezpapa Programmer Feb 26, 2007 86 US Thank you. Perfect. Upvote 0 Downvote