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

Remove " " marks from a text string 1

Status
Not open for further replies.

DannyBill

Technical User
Nov 21, 2005
14
US
I have a field that currently has data "123456", I'm trying to figure out how to remove the " " marks so that it's 123456.

Any help would be greatly appreciated

Thanks in advance.....
 
Perhaps Replace(value, """", "") ????

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
ok...I tried this....Replace ( [Macid1]![city] ," " ", " " ) and it says the second comma is an invalid syntax
 
To get at the double quotes....you have to put two double quotes inside the double quotes. Escape characters/formatting requirements.

So: Replace([Macid1]![city] , """", "")

And you probably do not want the extra space in the third parameter....otherwise you end up with ^12345^ where ^ is a space character.

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
that worked....thank you..... It's amazing how something so simple can be so frustrating when you're new to all this.

Thanks again.
 
Another way:
Replace([Macid1]![city] , Chr(34), "")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PHV. I always forget about the chr function when using Replace.

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top