simoncpage
Programmer
Hi
I have a database set up with text fields for phone number inputs. The problem I have is that they are often inputed with spaces.
So
(1) 0123 0123 4567 or
(2) 0123 01234567 or
(3) 012301234567 or
(4) 01234567
could be an example I wish to do a search of parts of this (567) so that if the phone number is like the last example (4).
How can I convert this to a format so that I can search for parts of it as a number?
I have tried texttonum(phone) but this 1. loses the 0 and secondly wont find 567 in (4)
Any help would be great, thanks
Simon
I have a database set up with text fields for phone number inputs. The problem I have is that they are often inputed with spaces.
So
(1) 0123 0123 4567 or
(2) 0123 01234567 or
(3) 012301234567 or
(4) 01234567
could be an example I wish to do a search of parts of this (567) so that if the phone number is like the last example (4).
How can I convert this to a format so that I can search for parts of it as a number?
I have tried texttonum(phone) but this 1. loses the 0 and secondly wont find 567 in (4)
Any help would be great, thanks
Simon