Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making Text Labels Not Show Up If Corresponding Vale Is Null/0. 2

Status
Not open for further replies.

MSWhat

IS-IT--Management
Jul 19, 2007
62
US
Hi, all.

I'm wondering if it is possible to set some code/formatting to make it such that the text lable does not show up on a report if its corresponding value is either null or zero. For example, if my report looked like this:

Number of red popsicles purchased: 17
Number of blue popsicles purchased: 0

Is there a way to make "Number of blue popsicles purchased" not show up since it's value is 0. Right now, I've made it so that there is a conditional formating set for the form that If the value for popsicles purchased is exactly zero then the text is white (so you don't see the zero at all).

Thanks in advance for your help.
 
Thanks for your help, Danvlas, but I don't want the "AM" to show up if the expression is null. However, I did (accidentally) figure it out. The code is:

=IIF([AM], "AM: " &[AM],null)
 
My previously posted code is working exactly as I hope; "AM: __________" shows up (with the underlined space filled in by the specific Asset Manager, populated by [AM]) only if there is a value entered in the AM field from my table/form. If there isn't, nothing shows up, including the "AM:". That's what I was trying to do. Thanks for the suggestions, Danvlas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top