Solved

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

Posted on 2012-03-09
1
1,298 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

12 Experts available now in Live!

Get 1:1 Help Now