Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Generating a Client Number

Featured Replies

  • Newbies

This seems to be beyond my skill set. I'm attempting to auto generate a client number based on the following criteria:

First letter of first name

Last letter of last name

M or F for gender

Two digit month of birth

Two digit date of birth

Last three digits of birth year

Last four digits of SSN

The fields I have are:

NameFirst

NameLast

Gender

DOB (date formatted XX/XX/XXXX)

SSN

ClientNumber (the field I need calculated)

If the client information is

Sally Jones ,05/19/1965, XXX-XX-1234

the client number is:

SSF05199651234

Is there any way to do this in a calculation?

Tom

This is very easy to do - but utterly worthless for any purpose I can think of:


Left ( NameFirst ; 1 ) & 

Left ( NameLast ; 1 ) &

Gender &

SerialIncrement ( "0000000" ; 100000 * Month ( DOB ) + 1000 * Day ( DOB ) + Mod ( Year ( DOB ) ; 1000 ) ) &

Right ( SSN ; 4 )

I agree that this information would have limited use.

There is an error in the LastName caluculation, the OP wanted Right one Charater, and Upper.

I amended your calc


Left ( FirstName ; 1 ) & 

Upper (Right ( LastName ; 1 ) ) &

Gender &

SerialIncrement ( "0000000" ; 100000 * Month ( DOB ) + 1000 * Day ( DOB ) + Mod ( Year ( DOB ) ; 1000 ) ) &

Right ( SSN ; 4 )

HTH

Lee

Edited by Guest

  • Author
  • Newbies

Thank-you for your quick replies, I see where I was going wrong now.

I agree that this is a nonsense number, however it is required by the state. My tax dollars at work.

Tom

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.