NZ in a query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello:

About a year ago I got help from this board in using NZ to retreive a zero
instead of a null value. I'm having trouble remembering how to use this.
Could anyone give me a hand with some tips on where to place NZ.

Thank you
 
Robert,

Common places for this to be used are in a calculated field in a query,
or in an expression in the Control Source of an unbound textbox on a
form or report.
YourAdjustedData: Nz([YourField],0)
.... in a query will return the value of YourField, or 0 if YourField is
null.
 
Hello:

About a year ago I got help from this board in using NZ to retreive a zero
instead of a null value. I'm having trouble remembering how to use this.
Could anyone give me a hand with some tips on where to place NZ.

Thank you

=Nz([Field1])+ Mz(Field2]) + Nz(etc.)

=Nz([Field1],"Not/Applicable")

This information is available in VBA Help files.
 
Hello Steve:

Thank you very much. You've bailed me out of hot spots at work several times
before on this site.

Robert Massie

Steve Schapel said:
Robert,

Common places for this to be used are in a calculated field in a query,
or in an expression in the Control Source of an unbound textbox on a
form or report.
YourAdjustedData: Nz([YourField],0)
.... in a query will return the value of YourField, or 0 if YourField is
null.

--
Steve Schapel, Microsoft Access MVP

Hello:

About a year ago I got help from this board in using NZ to retreive a zero
instead of a null value. I'm having trouble remembering how to use this.
Could anyone give me a hand with some tips on where to place NZ.

Thank you
 

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

Similar Threads

NZ function 1
NZ function 1
Nz function 0
Nz or Iif 8
Access #Error & Excel Pivot 0
Query Criteria Not Working 2
change null count in crosstab qry to zeros Trouble with Nz 9
Nz - need code - 2

Back
Top