473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Showing fields that are zero in report

Hi
I have 12 fields that I want to print on a report but the field is not to be
printed if it is equal to zero.
Using On Print I can not shown groups but it is possible to do individual
fields?
The queries involved to lose the zero fields would be fairly complex and it
would be a lot easier just to do it on the report.
TIA
Nov 13 '05 #1
2 1187
Assuming the controls are on the detail section of the report, you need an
event procedure for the OnFormat something like
Field1.Visible = Nz(Field1)
Field2.Visible = Nz(Field2)
etc
If Field1 is zero then the visible property is set to false, otherwise it is
set to true

HTH

Phil
"Damon Grieves" <da****@vfeNOSPAMmail.net> wrote in message
news:42***********************@news.optusnet.com.a u...
Hi
I have 12 fields that I want to print on a report but the field is not to
be
printed if it is equal to zero.
Using On Print I can not shown groups but it is possible to do individual
fields?
The queries involved to lose the zero fields would be fairly complex and
it
would be a lot easier just to do it on the report.
TIA

Nov 13 '05 #2
Or, you could set the Format property of the controls to something like

#,##0;(#,##0);"";"Null"

The third section is the one that is applied when the value is zero.
See the help topic "Format Property - Number and Currency Data Types"
for more information.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: AAVF | last post by:
Hi We have a problem with a query. An Access database links via ODBC to a UNIX server. To speed things, we use the ODBC to load the relevant tables to the local PC that runs Access so that...
3
by: JC Mugs | last post by:
I have a report coming from a query that I need to print. Question: I want to have fields print or not print on a value of one of the fields... Like this- IF Doz2 >0 then Print Doz2 ...
3
by: CSDunn | last post by:
Hello, I have 14 fields on a report that hold integer values. The field names use the following naming convention: T1Number, T2Number ....T14Number. I need to get a 'sub total' of all fields as...
3
by: RC | last post by:
I can't quite grasp the concept of creating custom reports depending upon what options a user picks on a Form. For example, the user clicks on a "Print Reports" button and a Form pops up. On the...
2
by: Greg | last post by:
I have a report i put together for a database, and after making some changes (none of which i thouhgt were too significant) the report only seems to show the first part of the data. after about the...
3
by: John Baker | last post by:
Hi: I have a report that has currency fields which I wish to have as blank if they are zero, but to show as fill currency if they have data in them: 0 = Blank 100= $ 100.00 ..01 = $ .01 ...
2
by: Jeff | last post by:
Damn this is frustrating. I have used subreports for years and never had this problem. I have used these things more times than I can remember. Never have I had this problem....
10
Cyberdyne
by: Cyberdyne | last post by:
Here is the problem, I have a form with a field named Occurence with a Short Date Value, once entered it subsequently appears in 3 fields SOL1 which adds one year, SOL2 which adds 2 years and...
1
by: gandhi.vishal | last post by:
Hello, I have an issue. I'm not seeing the reportviewer data at all. The column names come up fine but there is no data in the report table. Here is what I'm doing I created a dataset with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.