IIF Function

R

ReportTrouble

Ok So I am in a Query Trying to count a score.

I Have the following expression:

Score: IIf([Yes/No RFI]="Yes",[Click Count]+10,[Click Count])

Which Works Great... However... If a record has a "Yes" and a Click Count of
"0" the score is blank while it should be "10".... Someone please help
 
M

Marshall Barton

ReportTrouble said:
Ok So I am in a Query Trying to count a score.

I Have the following expression:

Score: IIf([Yes/No RFI]="Yes",[Click Count]+10,[Click Count])

Which Works Great... However... If a record has a "Yes" and a Click Count of
"0" the score is blank while it should be "10".... Someone please help


I suspect that the problem is when Click Count is Null, not
when it is zero. If I'm right, then use the Nz function:

Score: IIf([Yes/No RFI]="Yes",Nz([Click Count],0)+10,[Click
Count])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top