Results 1 to 4 of 4

Thread: Need zero suppression in Data report?

  1. #1

    Thread Starter
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    Question Need zero suppression in Data report?

    Hi,
    I designed a report in DATA REPORT of visual basic 6.0 . I wish to suppress zero and print empty string when the field value contain zero in detail section. How can I do that. I have depiced a example. I need it to be done in DATA REPORT.

    ------------------------------------------------------------------
    Name``````````````````````Credit````````Debit
    ------------------------------------------------------------------
    Senthil```````````````````5000.00`````````0.00
    Siva````````````````````````0.00``````3000.00
    ------------------------------------------------------------------
    ````````````````Total`````5000.00````` 3000.00

    The above should be displayed as,
    ------------------------------------------------------------------
    Name``````````````````````Credit````````Debit
    ------------------------------------------------------------------
    Senthil```````````````````5000.00
    Siva``````````````````````````````````3000.00
    ------------------------------------------------------------------
    ````````````````Total`````5000.00````` 3000.00


    Note: where CREDIT and DEBIT fields are numeric.
    Here, ` sign used to show the above report in proper alignment assume it as a space.

    Waiting for the solution.

    Advance thanx,

    cheers,
    Senthil

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Need zero suppression in Data report?

    In your SELECT query you could try using something like the ff...

    VB Code:
    1. SELECT IIF(Amount1=0,'',Amount1) as Fld1
    2. FROM ImpBillRecords;
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    Re: Need zero suppression in Data report?

    Hi dee-u,
    Happy new year!.
    The data type of the CREDIT and DEBIT fields are single and the group footer used the sum(CREDIT) for total. It is not accept our try. If the data type of the fields CREDIT and DEBIT is string, will allow suppression, but group wise total is not possible. Any suggessions please give.

    Cheers
    Senthil

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need zero suppression in Data report?

    Moved to reporting section.

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