Solved

How to make an alias for zero on a report only

Posted on 2011-02-18
4
256 Views
Last Modified: 2012-05-11
I have a report that displays zero if the value is zero.  OK, but now I need to display the zero as N/A instead of zero.  How do I do this?  One text box I have has this code as the control source.

=IIf([AskPrice]>0,[AskPrice],"")

Thanks

0
Comment
Question by:napsternova
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
omgang earned 250 total points
ID: 34929329
=IIf([MyField]=0,"N/A",[MyField])
OM Gang
0
 

Author Comment

by:napsternova
ID: 34929386
Where would this go exactly?  Is it added to the control source?
0
 
LVL 28

Expert Comment

by:omgang
ID: 34929436
You can add a new, unbound, Textbox control to your report and enter the expression as the ControlSource.
OM Gang
0
 

Author Comment

by:napsternova
ID: 34929465
I think I actually just need to replace the control source that was there.  Thanks
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now