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 6204 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi, is there anyway by calculation to assign in a field "REGISTRATION No" the first two letters from the field "Name" + 3rd and 4th letter from the field "Last Name" + last 2 digits from the field "dathe of birth" ??

THANKS

GIAN

Posted (edited)

Left (Name; 2) & Middle (Last Name; 3; 2) & Right (date of birth; 2)

I did not try this out, but I think this will give you the idea.

Lee

oops had an extra (

I changed the calculation here.

Edited by Guest
Posted (edited)

I made a change to the calculation, did you catch that.

Saying it is close, but doesn't work, is not very helpful.

Give me an example of what the data (for the three fields) looks like, and what the result of the calculation was.

Lee

Edited by Guest
Posted

post a copy of the file so I can see first hand.

note: this is a open forum, so be sure that your file contains no confidential information.

Lee

Posted (edited)

Your sample file is hardly what your question asked.

I have modified your file, which has a Let Calculation to convert the Time for your need. If this helps, you can thank Tony Tanevski, from whom I borrowed the calculation.

In the future, please use the actual facts, instead of a made up one.

HTH

Lee

Lee_Sample.fp7.zip

Edited by Guest
Posted

THANKS Lee & Tony to help me out with this matter, but do you remember my first post where i was finding the way to take from (for example) FIELD "LICENCE PLATE" the 1st and the last digit (451TJD)= 4D

How hard do you think this will be, because i tryed the option that you sent to be to use

Left (Name; 2) & Middle (Last Name; 3; 2) & Right (date of birth; 2):)?:)?

well in this case will be

LicencePlate(1st and 4th digit)& SERIALNUMBER (4th+8th+last digits)

BEST PERSONAL REGARDS

Gian

P.S. The original file it belongs to the government, i signed a non disclosure agreement, so that's the way i just made up the one you saw. Sorry about that.

Posted (edited)

That was why I made the note:

Try this calculation:

Be sure the field is Text Result

//LicencePlate(1st and 4th digit)& SERIALNUMBER (4th+8th+last digits)

Left ( LICENCE PLATE ; 1 ) & Middle ( LICENCE PLATE ; 4 ; 1 ) & Middle ( SERIAL NUMBER ; 4 ; 1 ) & Middle ( SERIAL NUMBER ; 8 ; 1 ) & Right (SERIAL NUMBER; 2) & Let(

[

xHr = Hour(CREATION TIME);

xMin = Minute(CREATION TIME)

];

Case (xHr < 10; "0") & xHr & Case(xMin < 10; "0") & xMin

)

[color:blue]4T53202135 is the result I got.

Lee

Edited by Guest
Posted

u r welcome.

Hopefully you, and others following this thread, now understand how important it is for us to have pertinent information in order to provide a workable solution.

Lee

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