|
-
Nov 7th, 2008, 04:02 PM
#1
Thread Starter
New Member
[RESOLVED] Data Report formatting
Hello,
Is there any way to make a report to display blanks when number fields are having ZERO value ?
thanks
-
Nov 8th, 2008, 04:53 AM
#2
Re: Data Report formatting
One option that I could fine is to actually format your table fields before setting them to the report...
-
Nov 8th, 2008, 06:39 AM
#3
Re: Data Report formatting
-
Nov 8th, 2008, 12:12 PM
#4
Re: Data Report formatting
Use the DataFormat property of the rptTextBox control.
Select Custom from the list.
Set the FormatString to #;; ; or #;;"";
The FormatString is basically the same thing as the Format$ function, so use the different "formatting sections" to format accordingly. Section 3 is the formatting section for 0 values.
-
Nov 9th, 2008, 12:56 AM
#5
Re: Data Report formatting
Moderator :
Please delete this !
Last edited by jggtz; Nov 9th, 2008 at 01:01 AM.
-
Nov 10th, 2008, 09:59 AM
#6
Thread Starter
New Member
Re: Data Report formatting
That's great, thank you all, I'm starting to have hopes, because VB6 DataReport seemed very limited to me.
Another question: I have a group, and I want to print a group field only once, but on the same row with the first detail row. Is that possible ?
thanks again
Carmen
-
Nov 10th, 2008, 10:37 AM
#7
Re: Data Report formatting
because VB6 DataReport seemed very limited to me.
Compared to other report writers, DataReport is very limited. It has almost no "page" formatting functions.
It is not possible to suppress printing of a field based on a criteria. Other report writers have a "suppress if duplicated" function or suppress based on a formula.
The only work around I know is to add another column in your recordset. For every record this field is blank except for the first record of each Group.
-
Nov 10th, 2008, 10:58 AM
#8
Thread Starter
New Member
Re: Data Report formatting
I understand....
That trick with the column should be fine.
I'm using a stored procedure to get the records, do you think it's possible to get that column in stored procedure ?
No need for details, I can do it if it's possible, I only need to know if it worth trying, or if I'd better use VB for it.
The report is very simple, a list o invoices values, grouped by customer, who's details I want to show only once
thank you
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
|