Convert Null to Zero

saross

Registered User.
Local time
Today, 19:41
Joined
Mar 4, 2003
Messages
120
Hi, I'm trying to convert Null values from a query upon which my report is based into '0'. I noted on this forum a posting that suggested I go into the query and field properties and put 0;0;0;0 in Format to force the input to be 0 for neg, pos, 0, or null values... but this hasn't worked.

I also tried the =Nz([fieldname],0) and it came up with an error message.

How do I make sure that the fields that aren't returning any value appear as 0? (Or more precisely, £0!!)

Any ideas?
 
If you're running your report from a query make an expression field...

Nz([fieldname],0)

Don't use the equal sign.

hth,
Michael
 
I tried that but it returns an error message:

Syntax error (comma) in query expression '[Nz([Q1CapAlloc]),0]'

Any idea why that might be?
 

Users who are viewing this thread

Back
Top Bottom