Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6587 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

Left (User Last Name & "-----"; 5) & Left (City Name & "-----"; 5) &

Posted (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 by Guest
duplication
Posted

Case(

not IsEmpty ( User Last Name ) and not IsEmpty ( City Name ) ; Left ( User Last Name & "-----" ; 5 ) & Left ( City Name & "-----" ; 5 ) ;

""

)

Posted

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.

This topic is 6587 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.