473,378 Members | 1,549 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,378 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 7664
"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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...

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.