Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: problem with formula Post Reply Post New Topic
Author Message
Barb
Newbie
Newbie


Joined: 15 Nov 2011
Online Status: Offline
Posts: 29
Quote Barb Replybullet Topic: problem with formula
    Posted: 20 Dec 2011 at 10:22pm
Hello
 
I have a list of transaction report and I need to restrict transactions types for non-control accounts.
 
If an account is a control account then show all transactions types but if it is not a control account then show all transactions types except 13,14,18,19). I was thinkng about using select case but somthing is wrong in it, please help!
 
 
SELECT CASE {Command.Controlaccount}
CASE "Y"
FORMULA = {Command.TransType}
CASE "N"
FORMULA = ({Command.TransType} <> "13, 14, 18, 19")
END SELECT
Many thanks
Barb
IP IP Logged
asam
Newbie
Newbie
Avatar

Joined: 08 Jan 2011
Online Status: Offline
Posts: 20
Quote asam Replybullet Posted: 25 Dec 2011 at 1:58pm
I would expect that you are putting this in the Record Selection Formula and I would do it with:
      {Command.TransType} = "Y"
       OR
       {Command.TransType} = "N"
           and not {Command.TransType} IN (13, 14, 18, 19)
I often forget where the "not" goes (before or after {Command.TransType})
and if {Command.TransType} is a string value, you have to put each one in quotes. ("13", "14", "18", "19")

IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.016 seconds.