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

Using Formula to suppress a section 1

Status
Not open for further replies.

rfoote

MIS
Dec 21, 2000
26
US
I have a report that need to be either a summary report or a detailed report. I do not want have to maintain 2 reports for this so I added a paramater called print_detail.

Then in the format section for the detail section - Suppress I have it not checked, but within the formula I put
if print_detail = "Yes" then
False
else
True.

The results to not change

I am running version 8.5

Thanks for your help.
 
First, just use:

print_detail <> "Yes"

This will suppress when they don't select yes.

Also consider that a summary report can pass the GROUP BY clause to the database, so trying to create a mixed use report will result in the details ALWAYS being returned, hence slower performance when you only want a summary.

-k
 
Thank You some times the programmers forget about the simple steps with the application.

Thanks again.
 
I just want to say a big thank you to both the person who posted this question and the expert who answered it. I had no idea I could do this and it is a wonderful thing!

I actually just used the formula to conditionally suppress a field in a cross tab report and it worked like a charm!

Thanks again for figuring out what I needed before I knew it myself!

Harriet
 
Harriet,

So if you liked the post, give them a star. Look in the lower left hand corner of the posts in question.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top