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

Removing Slashes & Dashes from a Phone/Fax Field

Status
Not open for further replies.

aj3221

Technical User
May 14, 2008
79
US
I have a phone / fax field and need to pull out the "/" and "-" in the field.

The field currently displays:
518/555-0010

I need to display:
5155550010

Any help is appreciated!

Thanks
 
aj,

There are a couple of approaches, but the following should work nicely.

Code:
Left({YourField},3) & Mid({YourField},5,3) & Right({YourField},4)

You could also use the "Replace" function as well.

Hope this helps!


Mike
---------------------------------------------------------------
"To be alive is to revel in the moments, in the sunrise and the sunset, in the sudden and brief episodes of love and adventure,
in the hours of companionship. It is, most of all, to never be paralyzed by your fears of a future that no one can foretell."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top