Solved

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

Posted on 2012-03-09
1
1,312 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
1 Comment
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now