Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hello-

I have a database where I would like FMP 7 to generate an alphanumeric serial number based on 1 or 2 fields in the record, (i.e. the team and the member).

For example, John Smith of the Yankees would have "YJS123456" where 123456 is the number that was created and appended to the "Y" "S" and "J".

Is there a way to do this automatically?

Thank you...

Posted

Generate the serial number in a separate field, and make it auto-enter a serial number. Then combine it like this:

Left( Team, 1 ) & Left( NameFirst, 1 ) & Left( NameLast, 1 ) & SerialNumber

Make sure the result is of type text, not number. If you don't have first name and last in separate fields, it would look like this:

Left( Team, 1 ) & Left( Name, 1 ) & Left( RightWords (Name, 1), 1 ) & SerialNumber

This topic is 7448 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.