CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2004
    Posts
    26

    Don't display the field if it contains a zero value

    I'm working on a report for accounting. Usually debit and credit prob. I don't want to display the field if it contains zero. It creates a gap on my reports and want to avoid it.


    Anyone who can help?

    Thanks.
    Sino ang nakakaintindi nito?

  2. #2
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    651
    Using CR 8.5 and RDC, each field has a setting called 'SuppressIfZero' and one called 'SuppressIfBlank'. As the name implies, setting the 'SuppressIfZero' to True will suppress the field if the value is Zero, setting the 'SuppressIfBlank' to True will suppress the field if it's blank.
    I'd rather be wakeboarding...

  3. #3
    Join Date
    Jan 2004
    Posts
    26
    I did what you said but I still get a gap between my text. How can I eliminate it?

    Thanks.
    Sino ang nakakaintindi nito?

  4. #4
    Join Date
    May 2003
    Posts
    163
    Try to put the field in a separate section (If possible), and Suppress section if that value is blank.

  5. #5
    Join Date
    Aug 2004
    Posts
    1

    Cool suppress field

    Hi

    try suppressing the field or use a formula

    if (fieldname) = "0" then "No Data"

    I was working on the same thing in crystal reports 9 and got up to this finally.

    c ya

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured