max ny Posted January 10, 2007 Posted January 10, 2007 Dear FileMaker Gurus: I was required to merge "User Last Name" and "City Name," into a 10-gigit "User ID." I will take the first 5 letters of each. If any one is less than 5, "-" will be filled in, instead. Please help on the Field Definition and Calculation! Appreciate it! Max NY
mr_vodka Posted January 10, 2007 Posted January 10, 2007 Left (User Last Name & "-----"; 5) & Left (City Name & "-----"; 5) &
Lee Smith Posted January 10, 2007 Posted January 10, 2007 (edited) A client ID should be unique. Your calculation would be [color:blue]Left (User_Last _Name & "---" ; 5 ) & Left ( City_Name & "___"; 5) would allow duplicates. Try a name and city as Chan, San Francisco Chandler, San Franciso or Smith, Lee, Sacramento Smith, Tom, Sacramento I came back to add this and I see two others have also given the same basic calculation. What I was going to add, is thsi Client ID wouldn't even be a good Duplication calculation. HTH Lee Edited January 10, 2007 by Guest duplication
Raybaudi Posted January 10, 2007 Posted January 10, 2007 Case( not IsEmpty ( User Last Name ) and not IsEmpty ( City Name ) ; Left ( User Last Name & "-----" ; 5 ) & Left ( City Name & "-----" ; 5 ) ; "" )
aldipalo Posted January 11, 2007 Posted January 11, 2007 I agree with all that using UserLastNAme and User City is not a unique field and is destined for problems. Especially in large cities like New York. If you must combine user name and some other identifier try lastname and phone or lastname and zip or lastname and a serial number which ultimately would be best. Unless you have a VERY SMALL group of users and don't expect to ever grow you will be kicking yourself in the future.
max ny Posted January 11, 2007 Author Posted January 11, 2007 Thanks all of you! Yes! Merging "User Last Name" and "City Name" is really prone to "duplicate" problem! Max NY
Recommended Posts
This topic is 6874 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