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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing/printing detail section based on data

Status
Not open for further replies.

Imbriani

Programmer
Jan 9, 2004
195
US
Hi all,

I am using Crystal Reports XI with Windows XP and am fairly new to Crystal Reports, even though I have used it for years as part of MS Access.

I have a report with several detail section. One of the sections, I would like to have print/show based on the presence/absence of data in one field within this detail section. I know that I can suppress or not if data is blank, but is there a simple way to accomplish this with a conditional statement?


Kathy
 
Instead of suppression you could create a formula like:

if isnull({table.field}) or
trim({table.field}) = "" then
{table.otherfield}

You would probably want to format the section to "suppress blank section".

-LB
 
Could I do something like

If isnull({tablefield1}) and isnull({tablefield2}) then
true else
false

I have found that I need to put another field in there to accomodate some reports.
 
If you are setting up a conditional suppression formula, then yes.

-LB
 
I have found a way to put a formula into the detail section to supress it under certain conditions:

If {LabNumber.SampleType} = "Mixture" Then
True

but when previewed, the entire report produces no data. Any idea why this is happening?

 
Please explain in more detail what you trying to do.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top