IF isnull want query to answere 1 (1 Viewer)

mkelly

Registered User.
Local time
Today, 00:56
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])
 

allan57

Allan
Local time
Today, 06:56
Joined
Nov 29, 2004
Messages
336
try the following:-

IIf(nz([Rejected Job Percentage])=0,1,1-[Rejected Job Percentage])
 

Brianwarnock

Retired
Local time
Today, 06:56
Joined
Jun 2, 2003
Messages
12,701
Why not use IsNull?

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

Brian
 

FoFa

Registered User.
Local time
Today, 00:56
Joined
Jan 29, 2003
Messages
3,672
Can't you use NZ([Rejected Job Percentage],1)
 

Users who are viewing this thread

Top Bottom