LasseJ Posted January 8, 2008 Posted January 8, 2008 (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 January 8, 2008 by Guest
stanley Posted January 8, 2008 Posted January 8, 2008 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
LasseJ Posted January 10, 2008 Author Posted January 10, 2008 Hi Stanley Thank you very much. I added a forth field and it works perfect. Best regards Lasse
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now