Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Search parameters Post Reply Post New Topic
Author Message
adders
Groupie
Groupie


Joined: 09 Aug 2010
Online Status: Offline
Posts: 53
Quote adders Replybullet Topic: Search parameters
    Posted: 15 Dec 2010 at 5:27am
I have a custom formula field  which takes the @average turnover of three years. Is there anyway of making it filter out the results that have over a certain turnover, say £300,000 or introduing parameter that will search for requested values.

Thanks
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 15 Dec 2010 at 8:54am
Write a record selection formula like

{your_field} < {@average}

CR will then only display any of the records whose result is less than the value returned by @average

If you want users to specify the value, then you'll have to create a parameter based on that column, then write a record selection that is less than the value of the parameter.
IP IP Logged
adders
Groupie
Groupie


Joined: 09 Aug 2010
Online Status: Offline
Posts: 53
Quote adders Replybullet Posted: 15 Dec 2010 at 10:38pm
Thanks,

Will it look something along these lines:

{wcustomers.cust} like {?CUST} and                     Already exist on the report
{wcustomers.custname} like {?CNAME}

{wcustomers.cust} like {?CUST} > {@average}
Database                 Parameter field   > @average of over £200,000

Or am i looking along the wrong lines?

Thanks

IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 16 Dec 2010 at 2:46am
Something like that.

Although with a selection formula, you are specifying the records that you want to see (as opposed to a suppression formula, which specifies what you don't want to see)
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.