Solved Update Telephone Numbers (1 Viewer)

Number11

Member
Local time
Today, 17:55
Joined
Jan 29, 2020
Messages
607
Hi So i need to update some telephone numbers and remove the prefix "44"

447999999999

and remove with "0"
 

Gasman

Enthusiastic Amateur
Local time
Today, 17:55
Joined
Sep 21, 2011
Messages
14,314
So use the string function Left() and Mid() and concatenate with 0
 

cheekybuddha

AWF VIP
Local time
Today, 17:55
Joined
Jul 21, 2014
Messages
2,280
and remove with "0"
Do you mean replace with "0" ?

Where are your phone numbers? In a table?

If so, you can do something like:
SQL:
UPDATE YourTable
SET PhoneNumber = '0' & Mid(PhoneNumber, 3)
WHERE Left(PhoneNumber, 2) = '44'
;
 

cheekybuddha

AWF VIP
Local time
Today, 17:55
Joined
Jul 21, 2014
Messages
2,280
Oops! I've done @Gasman's bête noire and given a fish rather than a fishing rod and instruction manual 😬 (Sorry, gm!)
 

Users who are viewing this thread

Top Bottom