PC Review


Reply
Thread Tools Rate Thread

Change data arround

 
 
Robert
Guest
Posts: n/a
 
      25th May 2004
I have a table with phone number that were imported in the
following format (212)-555-0440. The field is set to text,
with no input masks.

I need to convert the numbers into a number field sothey
are stored as follows: 2125550440.

How would I formulate an Update query to do this
conversion?

Thanks
 
Reply With Quote
 
 
 
 
Elwin
Guest
Posts: n/a
 
      25th May 2004
Base that field of your update query on an expression...

Expr1: Mid([ph#],2,3) & Mid([ph#],7,3) & Mid([ph#],11)

>-----Original Message-----
>I have a table with phone number that were imported in

the
>following format (212)-555-0440. The field is set to

text,
>with no input masks.
>
>I need to convert the numbers into a number field sothey
>are stored as follows: 2125550440.
>
>How would I formulate an Update query to do this
>conversion?
>
>Thanks
>.
>

 
Reply With Quote
 
Gerald Stanley
Guest
Posts: n/a
 
      25th May 2004
Providing that the () and - characters are always in the
same place, the SQL should be along the lines of
UPDATE YourTable SET yourNumberColumn =
Mid(yourTextColumn,2,3) & Mid(yourTextColumn, 7,3) &
Right(yourTextColumn,4)

Hope This Helps
Gerald Stanley MCSD
>-----Original Message-----
>I have a table with phone number that were imported in the
>following format (212)-555-0440. The field is set to text,
>with no input masks.
>
>I need to convert the numbers into a number field sothey
>are stored as follows: 2125550440.
>
>How would I formulate an Update query to do this
>conversion?
>
>Thanks
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: White boxes arround icons? Ian D Windows XP General 0 27th Jun 2008 08:28 PM
Border arround region Nelson FANECO Microsoft C# .NET 0 13th Jun 2006 02:17 PM
Border arround region Nelson FANECO Microsoft Dot NET 0 13th Jun 2006 09:47 AM
ARROUND =?Utf-8?B?UkVDRVJP?= Microsoft Excel Misc 0 21st Apr 2006 11:18 AM
How To Acess my Pc arround the world =?Utf-8?B?QW50b255?= Windows XP Networking 4 27th Dec 2004 09:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:48 PM.