Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: How to compare duplicate data in same string Post Reply Post New Topic
Author Message
sashalewis1014
Newbie
Newbie
Avatar

Joined: 09 Jul 2008
Location: United States
Online Status: Offline
Posts: 5
Quote sashalewis1014 Replybullet Topic: How to compare duplicate data in same string
    Posted: 09 Jul 2008 at 12:20pm
I have a string that contains {address 1} line information. For record "B" where {secondary person} = "True". I need to return record "A's" ID if the value in (address 1) is the same and {secondary person} = "False". (This means they are the primary).
 
Any ideas?
Sasha Lewis
Database Development Manager
PKD Foundation
sashal@Pkdcure.org
IP IP Logged
saoco77
Senior Member
Senior Member


Joined: 26 Jun 2007
Online Status: Offline
Posts: 104
Quote saoco77 Replybullet Posted: 22 Jul 2008 at 6:34pm
Is it one row of data or two??
If it's two rows try something along these lines...

if
(({table.secondary_person} = "True") and
({table.address}=previous({table.address})) and
(previous({table.secondary_person}) = "False"))
then previous({table.ID})
else "alternate condition"

I didn't test this to verify the logic...

Sarah



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.031 seconds.