Solved

How to make an alias for zero on a report only

Posted on 2011-02-18
4
255 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

759 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

22 Experts available now in Live!

Get 1:1 Help Now