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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace a " with a space in a string

Status
Not open for further replies.

rleftw

Programmer
Feb 6, 2002
9
0
0
US
Can anyone tell me how to replace a " with a space in a string? I am doing an import of a text file and one of the fields has a value of Johnson "ABC" Company and I need it to be Johnson ABC Company. I am working in Access/2000 and I can not figure out a way to remove the character. I have tried using the Replace() function, but it has a problem replacing the " character.
 
I have Acc97 here and I cannot find a replace function BUT what you my try is something like:

replace(field, chr(34), " ")

Sorry that I don't know the exact syntax for the function.
 
Thank you allanon. I don't even think about using the CHR$(34)in the Replace() function. It works great.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top