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!

Remove numbers from address 1

Status
Not open for further replies.

Jake1

MIS
Aug 6, 2001
13
0
0
US
I need to remove the street address (number) from an address field and only print the text part of the address. I have done this in foxpro and dbase by locating the first "blank" in the address and then printing/listing the rest of the address. I assume this is how I would have to do this also but I am not sure on how to create and execute the formula.
 
If you are 100% sure all address fields start with a number with a space after it, then:
-------------------------------------
LEFT({address}, InStr({Address}," "))
-------------------------------------

Cheers,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
This should get you what you're looking for. I've added a check step in case your address doesn't start with a number.


if isnumeric(left({your.field},1)) then
mid({your.field},instr({your.field}," ") ) else
{your.field}
Mike

Before: After
[morning] [bugeyed]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top