simoncpage Posted December 4, 2003 Posted December 4, 2003 Hey Anyone help me with this I want to be able to add a search that will find numbers with and without spaces for example Actual entry: 1234 2300 Search either: 1234 2300 or 12342300 so with either it will come up One way I thought was via script and to create another field (calculation) "No space telephone" but is there another way? Simon
Lee Smith Posted December 4, 2003 Posted December 4, 2003 New calculation field with this calculation Result is Numbers TextToNum(YourTelephoneNumberFieldHere) Lee
ESpringer Posted December 4, 2003 Posted December 4, 2003 If the field has the "number" format it will already ignore spaces, dashes, letters, etc. when you do a find or a sort.
Lee Smith Posted December 4, 2003 Posted December 4, 2003 Not for a find in a number field that has spaces in it. Besides, Simon described the field as having spaces, hypens, etc., (like a phone number) in the field. Hense the Subject Telephone Numbers probably. Lee
simoncpage Posted December 5, 2003 Author Posted December 5, 2003 The phone numbers fields are stored as "text" fields. However when I do text to number calc field the numbers arent quite right in that a number begining 0207 comes our as 207. Plus on search for this text_to_num field i am not able to search for numbers fully for instance the tex_to_num field shows this: 02174860655 suppose I wish to search for the "7486" or "0655" ?? and how do I search for "7486 0655" with the space?? Thanks
BobWeaver Posted December 5, 2003 Posted December 5, 2003 I think you may need to use the substitute function to remove all the usual phone number separators Substitute(Substitute(Substitute(Substitute(PhoneNo, "(", ""), ")", ""), "-", ""), " ", "") And keep all the fields as text so you don't lose leading zeros.
Recommended Posts
This topic is 7661 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now