Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Record Selection Question Post Reply Post New Topic
Author Message
abrown
Newbie
Newbie


Joined: 15 May 2009
Online Status: Offline
Posts: 9
Quote abrown Replybullet Topic: Record Selection Question
    Posted: 19 Apr 2011 at 6:20am
I want the Record Selection to add the Quantity the corresponds to the SDCODEs as follows: SDCODE(1+5+9-11). Below is what I have. It works great but the only part that doesn't work is the last portion {STKDET.SDCODE}= 11 . The formula below is ADDING the SDCODE 11 and not subtracting it. Can this be done?

Record Selection:
{STKDET.SDSTK} = {?Stock#} and
if({STKDET.SDSTK}={?StockException})then
{STKDET.SDCODE}= 1 or{STKDET.SDCODE}= 5 or {STKDET.SDCODE}= 9 or {STKDET.SDCODE}= 11 else
{STKDET.SDCODE} = 10.00
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Apr 2011 at 8:38am
record select ion is only for selecting a record, not altering the content of the record so I am not exaclty sure what you are trying to do here...
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 19 Apr 2011 at 8:40am
Selection formulas act as filters.
They are passed to the DB as part of the query that crystal builds.

Use a normal formula to write your code and then drag that onto the report instead if you want to customize your output.

Edited by Keikoku - 19 Apr 2011 at 8:41am
IP IP Logged
abrown
Newbie
Newbie


Joined: 15 May 2009
Online Status: Offline
Posts: 9
Quote abrown Replybullet Posted: 19 Apr 2011 at 10:23am
Ok thank you for the help.
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.