Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Multiple Rows problem Post Reply Post New Topic
Author Message
chris
Newbie
Newbie


Joined: 02 Apr 2008
Location: United Kingdom
Online Status: Offline
Posts: 35
Quote chris Replybullet Topic: Multiple Rows problem
    Posted: 02 Apr 2008 at 6:35am
Hi All
 
I'm sure there is a really simple solution to the problem I am having but as yet I haven't found it.
 
I have a client table (one row per client) linked to a client orders table (one row per order so mulitple rows possible for each client). The client order table has an order type field completed for each order.
 
My report is displaying basic client data from the client table - id, name, gender, dob etc and I want to display a field which simply says True or False as to whether that client has a specfic type of order against them from the client orders table. I need my report to be kept to one line per client.
 
Currently I have just done a simple Iif statement... Iif(client_order_type ="MISC","TRUE","FALSE) but I am getting multiple rows returned. one row for every order and then the answer to the Iif statement after each row. As I am not showing the Order Type as a field in my report I wasn't expecting this to happen. 
 
Hope that made sense and someone out there can solve this for me.
 
Thanks
IP IP Logged
Iago
Groupie
Groupie
Avatar

Joined: 01 Oct 2007
Location: United States
Online Status: Offline
Posts: 52
Quote Iago Replybullet Posted: 04 Apr 2008 at 2:34pm
Add a group for client name or client ID.  Move the fields from the detail section to the grou section that relate to the client.  These should be the fields that repeat.  Next move you formula to the Group section.  You will need an outer join to make sure all clients are returned.  Add a filter for only MISC records.  Edit your formula to handle nulls.  Hide the detail section of the report
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.