Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Case statement Post Reply Post New Topic
Author Message
Jim Wile
Newbie
Newbie
Avatar

Joined: 14 Jan 2013
Online Status: Offline
Posts: 3
Quote Jim Wile Replybullet Topic: Case statement
     Posted: 15 Jul 2013 at 10:13am
Is it possible to use multiple fields in a case statement
like:
case field 1, field2
WHEN '001':'lb' THEN @LB_WEIGHT
WHEN '001': 'KG' THEN @LG_WEIGHT
WHEN '002': '' THEN @KG_WEIGHT
;



Thanks
JW
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 15 Jul 2013 at 10:56am
No, case is a single value compare.

You can concatenate your fields into 1 and use that though.

HTH
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