Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Editor Where Conditions Post Reply Post New Topic
Author Message
Sensei86
Newbie
Newbie


Joined: 26 Apr 2011
Location: United States
Online Status: Offline
Posts: 1
Quote Sensei86 Replybullet Topic: Formula Editor Where Conditions
     Posted: 26 Apr 2011 at 8:47am
Hi, I'm relatively new to CR and have a few questions about what I want to accomplish.
 
I wouldl like to basically have where conditions within the formula, but it seems CR does not allow this.  Is there a workaround this?
 
Example:
f
 
WHERE
 
{impact.yyyy} = MINIMUM ({mpact.yyyy}) + 1
 
 
 
Any help would be appreciated. Thanks.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 27 Apr 2011 at 3:26am
sure it does, you're thinking in the wrong direction...
 
local numbervar amin := minimum({impact.yyyy}) + 1;
if amin = {impact.yyyy} then
 
 
don't know about the else, but this should work for what you coded above.
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