Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Different record selection on same table column Post Reply Post New Topic
Author Message
filipz
Newbie
Newbie
Avatar

Joined: 17 Oct 2007
Location: Slovakia
Online Status: Offline
Posts: 1
Quote filipz Replybullet Topic: Different record selection on same table column
    Posted: 17 Oct 2007 at 4:22pm
Hi

I have a problem with filtering data when filtering is used on same table column but with different conditions.

For example I have tables

Produkt = {ProduktID,ProduktName,...}
Actions = {ProduktID, ActionID,ActionName,...}

One product can have more different actions.

I have one group grouped by ProduktID.

I would like to write report something like this:
This is written in Details Section

"TextObject1: "   Actions.ActionName //if ActionID=150
"TextObject2: "   Actions.ActionName //if ActionID=160

But when I use selection expert in first row and add condition Actions.ActionID is 'equal to' 150 and then Actions.ActionID is 'equal to' 160 in second row it doesnt show anything in Details Section.

I have tried to use this conditions on different formula like this:
   "TextObject1: "   formula1
"TextObject2: "   formula2
where formula1 and formula2 = {Actions.ActionName} but it doesnt help.

Thanks.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 21 Oct 2007 at 9:20am
You need to use Actions.ActionID is 'equal to' 150 or then Actions.ActionID is 'equal to' 160.
 
If you use "and", it looks for your ActionID field to be equal to both 150 and 160 at the same time, which is impossible.  So, you don't get any data in your report.
 
If you use "or", it looks for your ActionID field to be either 150 or 160, which should show the data that you want.
 
-Dell
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.047 seconds.