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

Recommended Posts

Posted

I am not sure if there is a function that would be able to do this but I figured I might have just missed it. I want to do the following:

Adress Field:

Company Name

Address

City, State, Zip

Change it to individual fields per line:

AddrLine1: CompanyName

AddrLine2: Address

AddrLine3: City, State, Zip

Thanks for any help!

Posted

Too bad you don't have FileMaker 7 or later. FileMaker 7 introduced LeftValues, RightValues and MiddleValues which would make this a lot easier. In FileMaker 6 you can use the following formulas.

Company:

Left(Name; Position(Name; "¶"; 1; 1) - 1)

Address:

Middle(address, Position(address, "¶", 1, 1) + 1, Position(address, "¶", 1, 2) - Position(address, "¶", 1, 1) - 1)

City:

Left(Right(address, Length(address) - Position(address, "¶", 1, 2)), Position(Right(address, Length(address) - Position(address, "¶", 1, 2)), ",", 1, 1) - 1)

State:

Middle(Right(address, Length(address) - Position(address, "¶", 1, 2)), Position(Right(address, Length(address) - Position(address, "¶", 1, 2)), ",", 1, 1) + 2, 2)

Zip:

RightWords(address, 1)

And, yes! You should separate the city, state and zip into separate fields. This will make it possible for you to sort on the city or state.

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