Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

supressing details sections using crystal basic

Status
Not open for further replies.

johnuk1

MIS
Aug 18, 2004
13
US
I have 3 details rows all displaying same fields

I only want to display details b to if a certain field contains a value

I only want to display details c if a certain field contains a value

can this be done using a formula?

 
should have said

I am using Crystal 9

I am thinking I should put a formula somewhere in the details section but where and how to say if fieldx>0 then display?

thanks for any and all assistance
 
You can conditionally suppress sections based upon the result of another formula or a database field.

Under the Report menu, choose Section Expert.
Highlight Details B from the list on the left.
Click the X+2 button to the right of the "Suppress(No Drill Down)" property.
In the editor, setup your logic so that the logic evaluates to True or False.
Here is an example of the logic:

{table.field} = "A"

This will suppress the section when the field returns "A".

Save and Close.
repeat the process for Details C.

~Brian
 
amazing just as i posted this i got the same idea which of course works. Thanks again Brian. I am starting to realize just how powerful crystal reports can be when you know what you are doing! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top