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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NZ changing format? 1

Status
Not open for further replies.

straybullet

IS-IT--Management
Jun 5, 2003
593
US
CPCompCt: Count([ConstructionDateCompleted])

results in 29, right aligned in the cell

CPCompCt: nz(Count([ConstructionDateCompleted]),0)

results in 29 as well, however it's now left aligned in the cell.

is this indicating the result is now being treated as text?

Let them hate - so long as they fear... Lucius Accius
 
Why using the Nz function with the Count aggregate function which should never returns a Null value ?

Anyway, to be sure to get a numeric value with the Nz function:
Val(Nz(Expression,0))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank you - there are times the value could be null, just trying to be ready for it.

Let them hate - so long as they fear... Lucius Accius
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top