473,472 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Formatting Zero Value $ fields in a report

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

I know I can use # to create blank, but have not been able to figure out how to deal with
the set up of the dollar sign and decimal point. Advice appreciated!

Thanks in advance

John Baker
Nov 13 '05 #1
3 2063
On Tue, 16 Nov 2004 13:14:58 GMT, John Baker <Ba******@Verizon.net>
wrote:

Format your value using the Format function.
-Tom.

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

I know I can use # to create blank, but have not been able to figure out how to deal with
the set up of the dollar sign and decimal point. Advice appreciated!

Thanks in advance

John Baker


Nov 13 '05 #2
John Baker <Ba******@Verizon.net> wrote:
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


Hi John.

How about doing this as an in-line 'If' in the report's query? I'm assuming
that the field's data type is 'currency' in the table.

MyCurrencyField:IIf([MyField]=0,Null,[MyField])

HTH - Keith.
www.keithwilby.com
Nov 13 '05 #3
On Tue, 16 Nov 2004 13:14:58 GMT, John Baker wrote:
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

I know I can use # to create blank, but have not been able to figure out how to deal with
the set up of the dollar sign and decimal point. Advice appreciated!

Thanks in advance

John Baker


Use the control's Format property.
$ #,##0.00;-$ #,##0.00;
See Access Help.
Format property + Number and Currency Datatype
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #4

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

Similar topics

0
by: Zoury | last post by:
Hi there ! :O) I'm having a two strange behaviors with Crystal Report which seems to have the same cause.. All the fields used in the reports comes from some SQL Server views. *** 1st...
2
by: CSDunn | last post by:
Hello, In an Access 2003 ADP Subform, I am trying to set the BackGround color of three textbox fields (LSScore, RScore, WScore) in the current record of the subform to zero (black) if the value of...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
2
by: Sara | last post by:
The problem: Conditional formatting bold, red when field Value < date() sets the field background to white - always - whether condition is met or not. I want the field unfilled and just red/bold...
4
by: deko | last post by:
I've heard it's best not to have any formatting specified for Table fields (except perhaps Currency), and instead set the formatting in the Form or Report. But what about Yes/No fields? When I...
6
by: DeniseY | last post by:
I have an Access report that is created on the fly by the user selecting the fields to be included. The Access report comes out fine, but I want it to automatically output to an Excel spreadsheet....
4
by: D.Stone | last post by:
I am having problems formatting an Access 2003 report which is trivial in the extreme (tabular layout, 9 fields from 1 table per row in the detail section, no groups/totals). One field (only) in...
10
by: sara | last post by:
Hi - I have a report that is 14 columnar sub-reports (Line up: Position- holders in each of our 14 locations - Manager, Assistant Manager, Receiving, Office, etc). I output directly to PDF...
2
Pittaman
by: Pittaman | last post by:
Hello I am creating some crystal reports (for visual studio 2005) based on the content of certain .NET objects. I'm doing this in .NET 2.0. For one of them I'm using a Cross-table to summarize...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.