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

How to split text into two fields

Status
Not open for further replies.

SmallTime

Technical User
May 17, 2004
127
GB
Hi all,

I’ve been given a table of addresses (TblAddress) that has the door number and street name in the same field eg. 123 Howard Way (the field is called address2). I want to move the door numbers to a new field that I’ve created (No) in the same table.

Could someone show me a simple way to do this?

Regards
 
update tbl
set no = left(address2, ' ')
set address2 = right(address2, ' ')

remember to back up before you do this...

--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top