|
-
Oct 9th, 2009, 11:15 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Is there a way to hide columns in report if they contain zeros
Hello: My sql stored procedure is returning several columns and some times certain columns may only contain zeros. if this happens, i would like to hide the entire column but didn't know if this was possible in a crystal report.
thanks,
Proctor
-
Oct 9th, 2009, 11:48 AM
#2
Re: Is there a way to hide columns in report if they contain zeros
There are a few ways to do this in Crystal Reports.
1) Right click on the report object and select Format Field. On the Format screen -> Number tab click the Customize button. On the Custom Style screen -> Number Tab check the "Suppress If Zero" box.
2) Set the Object Visibility formula. On the Format Screen -> Common Tab click the button beside the Suppress checkbox. Enter a formula similar to
{DatabaseTable.FieldName} = 0
-
Oct 12th, 2009, 01:04 PM
#3
Thread Starter
Fanatic Member
Re: Is there a way to hide columns in report if they contain zeros
brucevde: Hello - I'm finally getting around being able to try out your suggestions and so I tried suggestion #1 and it's working great!!!
I would also like to supress the header that's associated with it. do you know if there's also a way to do this?
Thanks again for your help!!!
Proctor
-
Oct 12th, 2009, 01:19 PM
#4
Thread Starter
Fanatic Member
Re: Is there a way to hide columns in report if they contain zeros
Brucevde:
i used your suggestion #2 to suppress the column headers and so now I'm all set!!!
Thank you again for showing me how to do this.
Proctor
-
Nov 21st, 2009, 04:29 AM
#5
Fanatic Member
Re: [RESOLVED] Is there a way to hide columns in report if they contain zeros
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|