Setting the value "0" to "--"

  • Thread starter Thread starter margaret
  • Start date Start date
M

margaret

In my report I have a control ... CYTotal: (Nz([cy1],0)+Nz
([cy2],0)) ... If the answer to this is "0", I would like
to use "--" instead. I tried using IIf statement and
couldn't get it to work ... any suggestions?
 
In my report I have a control ... CYTotal: (Nz([cy1],0)+Nz
([cy2],0)) ... If the answer to this is "0", I would like
to use "--" instead. I tried using IIf statement and
couldn't get it to work ... any suggestions?

Use the control's Format property.
Set the Format property to:
#;-#;--

See Access Help on:
Format Property + Number and Currency datatype
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top