Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula to retrieve data from multiple fields Post Reply Post New Topic
Author Message
akguy25
Newbie
Newbie


Joined: 10 Apr 2008
Online Status: Offline
Posts: 2
Quote akguy25 Replybullet Topic: Formula to retrieve data from multiple fields
    Posted: 10 Apr 2008 at 3:00pm
Hello, I did not see a place to post for my version so I will try here.  I am using Crystal 8.5 to design a report based on a SQL database.  I am having a hard time figuring out how to write a formula that will return a value when the data could be in one or more of 8 fields in the same table.  It does not matter which field the data is in, only that I can retrieve it to do further sorting.  Does anyone know what function to use when you are looking in multiple fields?
IP IP Logged
jgh1204
Newbie
Newbie


Joined: 13 Mar 2008
Location: United States
Online Status: Offline
Posts: 20
Quote jgh1204 Replybullet Posted: 11 Apr 2008 at 5:41am
If it was just one  field with the data, you could use an if statement, but multiple fields would be difficult since formulas only return one value.
IP IP Logged
Iago
Groupie
Groupie
Avatar

Joined: 01 Oct 2007
Location: United States
Online Status: Offline
Posts: 52
Quote Iago Replybullet Posted: 15 Apr 2008 at 12:58pm

8 formulas that return a Boolean

A ninth formula to OR all the 8 formula for a found condition Boolean result

A tenth formula with a long case or if then else statement to use the first 8 formulas to return the found value, if found condition is true.

It nutty I know
you might be able to concatinate all the fields and seach with a like
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.