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.

insert comma between data

Featured Replies

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

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

  • Author

Hi Stanley

Thank you very much. I added a forth field and it works perfect.

Best regards

Lasse

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.