Joined: 10 Jun 2010
Location: United States
Online Status: Offline
Posts: 33
Topic: Formula not working correctly Posted: 20 Jan 2014 at 9:58am
We have a report that pulls all the employee contacts from a whatever company ID is entered at the prompt. Here is the formula:
To accumulate contacts:
whileprintingrecords;stringvar contact;if not({Name_2.FIRST_NAME} + ' ' + {Name_2.MIDDLE_NAME} + ' ' + {Name_2.LAST_NAME} + ' ' + {Name_2.SUFFIX} ' ' + {Name_2.TITLE}
in contact)
then contact := contact + {Name_2.FIRST_NAME} + ' ' + {Name_2.MIDDLE_NAME} + ' ' + {Name_2.LAST_NAME} + ' ' {Name_2.SUFFIX} + ' ' + {Name_2.TITLE} +", ";
Before we added the Title it wouldn't differentiate between 2 people with the same name but different suffix. Once we added the title it worked and pulled both names.
Any idea how to fix this?
Thanks!
Ariel
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 21 Jan 2014 at 3:43am
what do you mean by fix this?
Does that mean you want it to display the name including the title but ignore the title in the duplication check? if a contact is in twice with(or more) two (or more) titles, which title needs to be displayed?
Joined: 10 Jun 2010
Location: United States
Online Status: Offline
Posts: 33
Posted: 21 Jan 2014 at 3:46am
We actually don't want to display the title. Displaying the title was the only way to not get duplicates. There shouldn't be duplicates if one person has a suffix and the other doesn't.
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 21 Jan 2014 at 4:21am
I am still not sure what you want exactly but you might consider changing the upper "not in" section to just using first middle and last nameas the validation to include or exclude the row.
Joined: 10 Jun 2010
Location: United States
Online Status: Offline
Posts: 33
Posted: 21 Jan 2014 at 4:53am
The problem is we have lots of people with the same name but they are Jr and Sr and it's not showing them both. Using just the first, middle and last won't work because that is the part of the name that is the same.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum