Smart questions
Smart answers
Smart people
Join Tek-Tips Forums

Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

umeshs79 (Programmer) (OP)
9 Aug 02 2:30
  I make Customer report which contains sub report of items related to the customer.
Layout is as follow:

Customer ID Name              Address
00001       Jon                XYZ

          Item                Qty.-> Comes from subreport.
          Item1                5
          Item2               10  
00002     Methew               ABC

          Item                Qty.-> Comes from subreport.
                                     No item exist for this customer.

Now my problem is that if there is no item for a particular cusomter i want to supress the Item Header in sub report. As in 2nd record of customer only Item Header is printed

So please tell me how i suppres the Item header in sub report if there is no item for that particular customer.

I have tried in Supress option
 if Count({Item.itemID}) = then

but this does not work, because there are items in item table but there is no item for given customer.
So please tell how it do it?


vganeshbabu (Programmer)
9 Aug 02 2:39
Try this

if {Item.itemID} = "" then
goranm (Programmer)
9 Aug 02 2:56
Another way is to go to "File\Report Options" in your Subreport
and select the option "Suppress Printing If No Records"

umeshs79 (Programmer) (OP)
9 Aug 02 4:59
Hi Goran,
   I am using Crystal.NET reports. So there no  "Suppress Printing If No Records" in Report Options dialog box. So is there anywhere else such option from where i can supress the subreport.


Umesh Sharma,MCSD

goranm (Programmer)
9 Aug 02 6:08
Hi Umesh !

Unfortunately I donĀ“t know anything about Crystal.NET reports.
But if you take your own suppress idea and use the "IsNull function" I think it will work.

if isNull({Item.itemID})then

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close