If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > Conditions in formula

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-27-10, 06:26
HendrikB HendrikB is offline
Registered User
 
Join Date: Jan 2008
Posts: 20
Conditions in formula

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.
Reply With Quote
  #2 (permalink)  
Old 06-27-10, 18:02
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Perhaps move this logic to your database query. Consider a parametrized query
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On