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

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

Recommended Posts

Posted (edited)

hi all

I have seperated my customer adresses in separated in three fields: 'street' 'number' and 'floor' in my database.

My problem is how to separate 'number' and 'floor' with a comma, when merging the data into a letter template in FM.

I only need a comma if the adress actually includes a floor.

I guess I'm looking for a solution where a comma only is included if there is no data in 'floor'.

But I cant figure out how. Can anyone help?

Regards

Lasse

Edited by Guest
Posted

Lasse:

You should consider using a fourth field, a calculation field, for your letter template.

In the calculation definition, you would have something like this (with your fields named 'Street', 'Number' and 'Floor':

Street & " " & Number & Case(IsEmpty(Floor);"";", " & Floor)

So, if you have no data in Floor, the calculation puts "" after Number. If there is data in Floor, the calculation puts in ", " and then the Floor. Note also that I have put a space in between Street and Number. Remember to make sure that the calculation result is text.

Hope that helps.

-Stanley

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