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!

suppressing all details and GH/GF if one detail line is null 2

Status
Not open for further replies.

DJWheezyWeez

Technical User
Jun 5, 2008
265
US
I'm using CR XI.

Is there a way to do this? I have a bunch of lines in my details section but whenever a null value comes for {table.price}, I would like that entire job to be suppressed, both Group Header/Footer and the details sections. So far, I haven't been able to figure out a way so I'm highlighting lines based on null values so when someone looks at it, it is very visable and they can skip the job. I would like it if this is possible or if there is another way to do it. Any suggestions are welcome.

-DJWW

 
Do a formula field with something like
Code:
If isnull({your.field}) then 1 else 0
Do a summary for the group, finding the maximum.

When the maximum is one, suppress the group. Group suppression should do it.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Great suggestion. Almost worked 100%. When I use your idea, it suppresses the header and all the lines in the detail section that are null but leaves the lines that aren't null. Maybe I didn't explain my problem right but I would like it to also suppress the lines that aren't if any lines for that job are null. So if in one job, I have 100 lines of details and one of those lines are null, I want all the other 99 lines that aren't null to also be suppressed. Is there a way to do this?

-DJWW

 
Use Madawc's formula --let's call it {@isnull}. Then go to report->selection formula->GROUP and enter:

sum({@isnull},{table.groupfield}) = 0

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top