Reurn Null As Zero

AndyShuter

Registered User.
Local time
Today, 09:28
Joined
Mar 3, 2003
Messages
151
SELECT Count(qryLog4.BrokerCode) AS CountOfBrokerCode, qryLog4.GAPSold FROM qryLog4 GROUP BY qryLog4.GAPSold HAVING (((qryLog4.GAPSold)=True));

Hi, was wondering if someone could help me with this code - I wopuld like the result to return a numeric value of 0 (zero) if the result happens to be null

Many Thanks

Andy
 
=IIF(IsNull([X]),0,[X])
 
What's wrong with the null to zero function Nz()?
 
a more detailed answer could be given if you show how you are using the code :)

Peter
 

Users who are viewing this thread

Back
Top Bottom