Avatar of pdvsa
pdvsa
Flag for United States of America asked on

Nested If

Experts, I get the wrong number of arguments error in the below.  I dont know if I can do what I am trying to do.   Let me know if you see a comma misplaced or a parenth or if my logic is completely off on this one.  

=iif(Nz([PastDueYN],"")="",IIf(Nz([txtCompleted],"")="","Pending:","Completed:","")
Microsoft Access

Avatar of undefined
Last Comment
pdvsa

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
PatHartman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Saurabh Singh Teotia

Use the below one...

=iif(Nz([PastDueYN],"")="",IIf(Nz([txtCompleted],"")="","Pending:","Completed:"),"")

Saurabh...
Rey Obrero (Capricorn1)

lets evaluate what you are trying to do

for the first IIF expression
=iif(Nz([PastDueYN],"")="", <WhatValue>
if the expression is True, what value do you want to show in the <whatValue> portion
pdvsa

ASKER
Nice!  I have to put on my glasses.  Tough to see all of those parenth and commas.  

thank you
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23