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

Recommended Posts

Posted

I import many records from a text file on a regular basis. One of the fields has a book call number such as QA76.9.D3M445 1993

I need to recalculate that field so that it looks like QA 76.9 D3 M445 1993

So, in this example I need to add a space after the "A" , remove the second "." and replace with a space, and add a space after the "D3"

All of the values of this field are consistant in that they all need a space after the first two letters, replace the second "." with a space and add a space before the second letter after the removed "."

I hope this makes sense. If anyone can help me I would appreciate it greatly!! Thank you.

Posted

Let( P = Position( BookCallNo; "."; 0; 2 );

Left( BookCallNo; 2 ) & " " & Middle( BookCallNo; 3; P - 3 ) & " " & Middle( BookCallNo; P + 1; 2 ) & " " & Right( BookCallNo; Length(BookCallNo) - P - 2 ) )

You can make it an auto-entered calculation in BookCallNo and set your import options to perform auto-enter options. Deselect 'Do not replace existing value for field'. You'll probably want to disallow entry to the field in Browse Mode to prevent BookCallNo from being accidentally changed and triggering the calculation again.

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