473,395 Members | 1,464 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,395 software developers and data experts.

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 7671
"pe*******@physics.brown.edu" <pe*******@physics.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*******@physics.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*******@physics.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*******@physics.brown.edu> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.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
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...
3
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...
0
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...
3
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....
6
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...
14
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...
0
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...
6
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.