473,509 Members | 2,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set a field to blank when it's displaying 0.00

1 New Member
I'm writing a report that shows several rows whose values are 0.00 when not used. Trying to hide them unless they are used. I know you can set Format to #;-# and show nothing if the field is set to 0, but if it's 0.00 it will still show .00 I need the two decimal places, so setting Decimal Place to Auto is not an option.

How can you get rid of the decimals?
Jan 16 '15 #1
1 1723
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Change the Decimal Places value back to Auto. Use the Format property of the textbox concerned instead.

You can then define a custom display format in the sequence
Expand|Select|Wrap|Line Numbers
  1. (positive values format); (negative values format); (zero values format); (null values format)
All you need to display non-zero values to two decimal places but zeroes as blank is to set the Format property of the textbox to:

Expand|Select|Wrap|Line Numbers
  1. 0.00; -0.00;
Please note that if you leave the decimal places property set to 2 it will override this custom format, so please change it back to auto accordingly before you make the format change.

-Stewart
Jan 17 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2718
by: Carsten Klotz | last post by:
Hi, does someone know, if it's possible capturing the content of a panel, when its form has state "minimized"? Details: A panel contains a Webbrowser object (AxSHDocVw.AxWebBrowser). My...
5
3862
by: sara | last post by:
I've looked at all the posts I could and don't see the solution. I am aware that the format to get a BLANK when the number is 0 is: $ #,###.00;($ #,###.00);"" But I can't, for the life of me,...
0
1063
by: Amit | last post by:
Hi Team, code to select the datagridview row when its EditMode property is set to EditOnEnter. Thanks, Amit amit.srivastava77@gmail.com, amit.srivastava@india.rsystems.com
1
2017
by: kamal | last post by:
when i add the datasource of combobox by default the first value is selected .. but when i use the Items.Add() then nothing is selected. how do i remove the default selection in combobox when...
1
7958
by: John Dalberg | last post by:
Running VS 2005 SP1. I am getting errors on pages which contain custom controls. A typical error looks like this: (This is from a test aspx page which only contains the custom control) Parser...
1
1438
by: sudermatt | last post by:
This one is completely baffling. DB Enviornment: MSSQL database Code Environment: ASP / VBscript (obviously) Problem: data from an nText field disappears from conn.execute(sql) recordset. ...
15
16612
by: hedges98 | last post by:
I am struggling with something that is probably quite simple. When I close a form, if certain fields are left empty then I want a message to pop up to tell the user these fields are required and then...
3
1189
by: hbhaskar | last post by:
I used the following command to hyperlink $result_id1 = mysql_query("SELECT * FROM query order by case_id"); for ($i=0; $row1=mysql_fetch_array($result_id1); $i++) { //case_no is a field in the...
4
2721
by: azkhan | last post by:
I am finding the way to change the text field value when we select the option from drop down list.Kindly help me out to solve this problem. I have Departments in one dropdown list and there is...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7073
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
7506
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
5656
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,...
1
5062
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...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.