Raymond D'Anjou
3/28/2007 5:03:00 PM
If you know that there will always be a space before 'St' then:
Replace(Addr, ' St', ' Street')
Of course, you'll have a problem with:
456 St. Patrick's St
64 Stern St
If 'St' is always at the end, maybe your best bet would be to integrate a
CASE:
CASE RIGHT(Addr, 2) WHEN 'St' ...
Even here, you'll have to handle street names that end with 'St'.
<vncntj@hotmail.com> wrote in message
news:1175097282.420738.272790@r56g2000hsd.googlegroups.com...
> How can I use the Replace function for strings like "St"
>
> Replace(Addr, "St", "Street")
>
>
> 15 East St
>
> updated to:
>
> 15 East Street
>
> instead of
>
> 15 EaStreet Street.
>
> Thanks,
> Vincent
>