Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Extracting formula help needed Post Reply Post New Topic
Author Message
blazeme182
Groupie
Groupie
Avatar

Joined: 15 Dec 2009
Online Status: Offline
Posts: 44
Quote blazeme182 Replybullet Topic: Extracting formula help needed
     Posted: 10 Sep 2012 at 4:58am
I am trying to connect past transactions to employees.

In my database the field gives me the option of selecting multiple values for example:

- John Smith (JSM)
- Jack Jones (JJO)

If I select only John Smith it will insert it into my database as "JSM". If I select John Smith and Jack Jones at the same time it will insert it as "JSM,JJO".

I have tried using this formula but it only gives me one of the names

if 'JSM' in {SaleComps.condition} then ', John Smith'
+
if 'JJO' in {SaleComps.condition} then ', Jack Jones'

but it will only show the first value "John Smith" and not "John Smith, Jack Jones".
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Sep 2012 at 3:56am
(if 'JSM' in {SaleComps.condition} then ', John Smith' )
+
(if 'JJO' in {SaleComps.condition} then ', Jack Jones' )
IP IP Logged
Printable version Printable version

Forum Jump
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