IF isnull want query to answere 1

mkelly

Registered User.
Local time
Today, 07:01
Joined
Apr 10, 2002
Messages
213
I have a query and it can be a null value if it is null I want it to return 1 if not null I want the calculation. This is what I have but it will not work.

Please help!!!
repo on sitePercent of copy jobs not rejected:IIF([Rejected Job Percentage]=0,1,(1-[Rejected Job Percentage])
 
try the following:-

IIf(nz([Rejected Job Percentage])=0,1,1-[Rejected Job Percentage])
 
Why not use IsNull?

IIf(IsNull([Rejected Job Percentage]),1,1-[Rejected Job Percentage])

Brian
 
Can't you use NZ([Rejected Job Percentage],1)
 

Users who are viewing this thread

Back
Top Bottom