?
Solved

Crystal Report Show hidden field if a detail record shows a number

Posted on 2012-03-09
1
Medium Priority
?
1,381 Views
Last Modified: 2012-06-27
Hi,

What would be the best way to show a suppressed textbox in a Crystal Report group header whenever any detailed record doesn't display a value in a particular field?

If none of the detail records shows a number in a field called mytestfield, the textbox in the group header should remain suppresed.

If, however, any or all the records in the detail section show a number in mytesxtfield, the textbox in the group header should show up so the user can see it.

Thanks.
0
Comment
Question by:TheUndecider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 37703559
WHy are there cases with no values?

Are you suppressing the field in details or is it NULL values?

If NULL values you can add a formula like
Name- IsNotNull
If IsNull({DetailField}) then
    1
Else
    0

You can then suppress the field in the group header with a formula

Sum({@IsNotNull},{GroupField}) = 0

mlmcc
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question