Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace string not working 2

Status
Not open for further replies.

vba317

Programmer
Mar 5, 2009
708
US
I am trying to write a replace string to replace the characters ;" & _ with ;" I currently have
I was a little confused on the proper character for " I hope it is Chr(148). Any help would be apprecaited.

Code:
strSQL = Replace(strSQL, Chr(59) & Chr(148) & Chr(32) & Chr(38) & Chr(32) & Chr(95), Chr(59) & Chr(148))
 
is Chr(34), so:
[tt]
strSQL = Replace(strSQL, ";" & Chr(34) & " & _", ";" & Chr(34))
[/tt]

Have fun.

---- Andy
 
Code:
strSQL = Replace(strSQL, ";"" & _", ";""")

FYI, " is Chr(34)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top