G
Guest
I am having problems with Access2000 saving a string which may include a ' or
a ". I searched the archives, and found some good information, and just
wanted to make sure I came up with the correct answer.
Please advise.
Thanks in advance.
Dim Str1 as String
Dim Str2 as String
Str1 = me.txtProbDesc
Str2 = Replace("'" & Str1 & "'", " ' ", " ' ' ")
And can it be taken a step further and run replace a second time, to handle
" as well? Such as:
Dim Str3 as String
Str3 = Replace("'" & Str2 & "'", " " ", " " " ")
Thanks again.
a ". I searched the archives, and found some good information, and just
wanted to make sure I came up with the correct answer.
Please advise.
Thanks in advance.
Dim Str1 as String
Dim Str2 as String
Str1 = me.txtProbDesc
Str2 = Replace("'" & Str1 & "'", " ' ", " ' ' ")
And can it be taken a step further and run replace a second time, to handle
" as well? Such as:
Dim Str3 as String
Str3 = Replace("'" & Str2 & "'", " " ", " " " ")
Thanks again.