Robert Collins Posted March 31, 2004 Posted March 31, 2004 I'm stuck again I am trying to get Filemaker to correct a couple of fields once information has been entered in them for example, I use a barcode reader to scan in serial numbers and telephone numbers of mobile phones. The manufacturers print the telephone number barcodes without a "-" between the code and the rest of the number . I want Filemaker to correct it to look like this 07973-123123 . I also need it to add "-" sybols after every 3 digits of a nine digit number for example : 123456789 needs to be corrected to 123-456-789 I don't want the corrected result in an other field , I need it to correct the wrong field. (I hope that makes sense) Thanks in advance FileMaker Version: 5 Platform: Mac OS 9
MarkWilson Posted April 1, 2004 Posted April 1, 2004 Robert, Here is a sample file for formatting an unformatted field. The Look-up method is originally from CobaltSky's article on "Automatically indexing non-indexable fields in FileMaker Pro Phone.zip
Robert Collins Posted April 1, 2004 Author Posted April 1, 2004 Is there an extra line I can add so that if the telephone number is entered correctly in the first place (ie. 07956-123123) then it will not try to reformat the field , for example add the - symbol or shift the digits along. thanks
Ender Posted April 1, 2004 Posted April 1, 2004 Like this? if(PatternCount( Text, "-") > 0, Text, <Format Calc>)
Recommended Posts
This topic is 7885 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