Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: distinct records with conditional select formula Post Reply Post New Topic
Author Message
nelsonchris
Newbie
Newbie
Avatar

Joined: 05 Sep 2007
Online Status: Offline
Posts: 1
Quote nelsonchris Replybullet Topic: distinct records with conditional select formula
    Posted: 05 Sep 2007 at 12:33pm

Hello,

I have a simple report pulling data from two tables. I want only distinct records. I am selecting records based on parameters; here is the select formula:

({?Service Name} = "*" or {selsvc.ServiceName} like {?Service Name})and
({?Program Name} = "*" or {selsvc.Selected Service Entry Program Name} like {?Program Name}) and
({?Agency Name} = "*" or {selsvc.Selected Service Entry Agency Name} like {?Agency Name})

The problem comes from the fact that Crystal will add the selsvc fields to the reports SQL select code, which has the effect of duplicating some records that do not have the same values for the selsvc fields. The select formula above is the only place in the report where values from the selsvc field are used, and as you can see they are only used when the user has submitted a matching parameter for them. I can not figure out how to get rid of the duplicates, please help!

Thanks for your time,

Chris


IP IP Logged
Keerthana_CR
Newbie
Newbie


Joined: 14 Sep 2007
Online Status: Offline
Posts: 3
Quote Keerthana_CR Replybullet Posted: 14 Sep 2007 at 1:49pm
Did you try selecting Database> Select Distinct Records
 
Thank you
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.