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

Qry to remove "_"'s from field? 1

Status
Not open for further replies.

newyorkny

IS-IT--Management
Jun 30, 2004
189
HK
Hi friends,

I had a data feed altered on me so that every address now comes out in the format "_123 Main Street".

Could some kind soul be so good as to guide me on formulating a query to remove that "_" and leave just the "123 Main Street"?

Here is the query that gives me all addresses:

SELECT TransferJanA2005.Activity1
FROM TransferJanA2005;

Many thanks for any guidance on this chore! :)

NYNY
 
something like this ?
UPDATE TransferJanA2005
SET Activity1 = Mid(Activity1, 2)
WHERE Activity1 Like '_*'
;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks, PH. That worked perfectly!

What's a good book for getting to that level of ease with SQL?

Many thanks. NY
 
Search your local drives for files named JET*.CHM

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top