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

How to strip off an ending character, & 1

Status
Not open for further replies.

ziggs

Technical User
Sep 21, 2000
195
US
Within the database, an intersection will appear as S Main St&First St& or 3rd St&Abel St&miscdata .

I need to make the true intersections like S Main St&First St Thus, how can I strip off the last & when & is the last character?

Thx
 
Not sure how "misc data" fits in here--can that be the end of the field? Anyway, if "&" can be the last character or the end of the street name can be the last character, then try:

if right({table.intersection},1) = "&" then
left({table.intersection},instrrev({table.intersection},"&")-1) else
{table.intersection}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top