Avatar of stephenlecomptejr
stephenlecomptejr
Flag for United States of America

asked on 

Need to build an Iif statement based on values coming up 0 to not show.

Need to build an Iif statement based on values coming up 0 to not show.

I have the following control source in a text box:

=Sum(Nz([01WorkHours],0))

Open in new window


But there are some values that come up 0.
I want to change this to where if it's 0 - then come up blank even thought it's a numeric field.

I know I can use Iif statement to make this work but having trouble with the syntax:
I used this and get the #error

iif(Sum(Nz([01WorkHours],0)) = 0, Null)

How do I change the above to make it work?

Thank you in advance.
Microsoft AccessVBA

Avatar of undefined
Last Comment
Gustav Brock

8/22/2022 - Mon