Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Conditions in formula Post Reply Post New Topic
Author Message
hendrikb
Newbie
Newbie


Joined: 26 Jan 2010
Online Status: Offline
Posts: 5
Quote hendrikb Replybullet Topic: Conditions in formula
    Posted: 27 Jun 2010 at 12:30am

Hi

I am trying to write a formula to select a specific product and its value for
the current year.
Example: I would call my formula Apples_CurrentYear
Then I want to specify:
if the product = "Apples" it should take the value field where the year field = 2010.

Not 100% sure how to code it in Crystal

Thanks.

IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 27 Jun 2010 at 2:03am
Hi
You need to code forumla which can be coded using Crystal and Basic Syntax below is Crystal Syntax
 
IF {TABLE.PRODUCTFIELDNAME}='Apples' and {Table.YearFieldName}=2010 then
{Table.ValueFielName} // this is the field value you want to display in report.
 
Hope this is what you looking for .
 
Cheers
Rahul
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.062 seconds.