473,563 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying a blank in a report column when currency value is zero?

How do I get Access to put a blank in a report column (but not
eliminate the record completely), when the field in question is
currency format, and the value is zero? My understanding is that null
is not permitted as a currency value.

thanks

Nov 13 '05 #1
5 7701
"pe*******@phys ics.brown.edu" <pe*******@phys ics.brown.edu> wrote:
How do I get Access to put a blank in a report column (but not
eliminate the record completely), when the field in question is
currency format, and the value is zero? My understanding is that null
is not permitted as a currency value.


Try using an in-line 'if' to generate a calculated field in the report's
query, something like:

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

This should give a null value there the field contains 0.

Regards,
Keith.
www.keithwilby.com
Nov 13 '05 #2
On 6 Jan 2005 07:25:49 -0800, pe*******@physi cs.brown.edu wrote:
How do I get Access to put a blank in a report column (but not
eliminate the record completely), when the field in question is
currency format, and the value is zero? My understanding is that null
is not permitted as a currency value.

thanks


Set the control's Format property to:
$#.00;-$#.00;""
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #3
Keith,

Thanks for your quick reply.

A further question about formatting here. Using your example for my
case, MyField is currency, MyNewField would be text or a number (to
allow null). Is that correct? But then doesn't the report need a field
in this column of a single format (which I want to be currency to
process the data which is nonzero most of the time)? More importantly,
shouldn't the formats agree in an iif statement, or is that not the
case?

thanks

Bob

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4
Robert Pelcovits <pe*******@phys ics.brown.edu> wrote:

Hi Bob.
Using your example for my
case, MyField is currency, MyNewField would be text or a number (to
allow null). Is that correct?
The in-line 'if' should return either the contents of the currency field or
a null.
But then doesn't the report need a field
in this column of a single format (which I want to be currency to
process the data which is nonzero most of the time)?
I haven't actually tried what I suggested (it was really just a 'starter
for 10') but I would have thought that non-zero values would retain their
native format.
More importantly,
shouldn't the formats agree in an iif statement, or is that not the
case?


I see what you're saying, but an in-line 'if' tests to see if a value meets
certain criteria and uses the arguments accordingly.

Regards,
Keith.
Nov 13 '05 #5
You can set the format property for the currency on the report to display
different formats for positive, negative, zero and null entries. Check the
format statement. It is easy to set the null and zero values to display as
blank by entering "" in the relevant positions.
Alex
<pe*******@phys ics.brown.edu> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
How do I get Access to put a blank in a report column (but not
eliminate the record completely), when the field in question is
currency format, and the value is zero? My understanding is that null
is not permitted as a currency value.

thanks

Nov 13 '05 #6

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

Similar topics

3
6599
by: Richard | last post by:
Hi, I have a form based on a table. When I filter the form I want to run a report based on the same table with the same filter as the form. No problem until I want to filter a combo box where the text value is on a different table. The me.filter is then a text instead of the id-number from the lookup table. This causes the report to prompt...
3
9354
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where clause after users typed in one or several letters/digits. My problem is as follows Most of the time I need to display form in continuous format,...
0
307
by: pelcovits | last post by:
How do I get Access to display a blank in a report column (but not eliminate the record completely; there are other nonzero fields) when the field is of currency format and its value is 0? My understanding is that "null" is not permitted for currency fields. thanks
3
31959
by: Scott Gorman | last post by:
I have created a report in access. I had to add a text box to input a value for previous months balance. I have formatted to display with $ currency, and also with the " , " for thousand separator. I have not been able to get it to display correctly. It is just the numbers without the formatting. Please help !!! *** Sent via...
6
4690
by: noway | last post by:
I have greated a report and have included a page break in it. The report breaks were it is supposed to but then it creates a blank page between the two pages. Since this report will print out approx 20 pages (without the blank pages) it is large waste of paper. I have tested the report by setting the data source so that only one page will...
14
2877
by: MLH | last post by:
I use A97. I've gotten used to reading values from textbox controls on forms, I've come to rely on it pretty heavily. My habit spills over into reports. I'm uncertain whether I can reliably read the values in textbox controls on reports during the OnFormat event code the same way I've been doing so in forms. I have a report I call the 402...
0
1594
by: JDMils | last post by:
I am having trouble finding the AutoNumber field of my database with this code. The code is used to replicate a specific table, reproducing all columns including indexes and Primary Keys (there is a good reason to do it this way), but I can not detect the columns which are Primary Keys as I cycle thru the column collection Can someone pls...
6
5111
by: Gord | last post by:
I have a report whose Record Source I set in code when clicking on a command button on a form. This Record Source is a table that gets created by the code. I have a textbox on the report whose Control Source is a field in this table. The field type is currency. Everything works good so far. When the value in the field is zero dollars ...
5
14221
by: Ashutosh | last post by:
Hi, I have a DataGridView which has as typed data-set associated with it. For the table which I am displaying in it, I want to display certain cells (corresponding to a column in the database) to be displayed as blank instead of the value 0 (Zero - integer). Also, I want the value 0 (zero) to be saved to the database when the changes are...
0
8103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7634
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5208
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3634
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2079
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 we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.