|
-
Jan 6th, 2006, 12:38 AM
#1
Thread Starter
Addicted Member
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
-
Jan 6th, 2006, 12:42 AM
#2
Re: Need zero suppression in Data report?
In your SELECT query you could try using something like the ff...
VB Code:
SELECT IIF(Amount1=0,'',Amount1) as Fld1
FROM ImpBillRecords;
-
Jan 6th, 2006, 05:28 AM
#3
Thread Starter
Addicted Member
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
-
Jan 6th, 2006, 06:46 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|