cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports: Supressing a section based on a value from a subreport

0 Kudos

Hello,

The detail section of my report contains a variety of fields from the main report as well as a subreport where more fields display. I would like to conditionally suppress the detail section of my main report if MyValue from the subreport is equal to "0." Is there a way that I can access a value in my main report that is being retrieved within the subreport?

Any help is greatly appreciated!

Accepted Solutions (0)

Answers (2)

Answers (2)

jeffrey_wei
Explorer
0 Kudos

I assume you've created a formula that passes the value from your subreport to your main already in your formula field?

Then it's a matter of going to your section (detail) where your main report has all your records and suppress it with a formula like:

NOT @ValueFrmSubreport = 0

You'll have to play around ie. if that doesn't work, remove the 'NOT'

EDIT: woops... just noticed that you asked this question back in 2016... so hopefully you found your answer by then 🙂

0 Kudos

Anybody?

....