pdvsa
asked on
Grouping and Report
Experts, I would like to modify the below to include an "OR" on the "Awaiting Amend Approval by Bank". Can I include something like this:
this is wrong though:
MyGroup: IIf(IsNull([tblLCAmendHist ory].[Date AmendAppro vedByBank] ) OR [tblLCAmendHistory].[Waiti ngBeneCons ent]) ]),"Awaiting Amend Approval by Bank","Recently Approved Amend by Bank")
this is the original (no or stmnt):
MyGroup: IIf(IsNull([tblLCAmendHist ory].[Date AmendAppro vedByBank] ),"Awaitin g Amend Approval by Bank","Recently Approved Amend by Bank")
thank you
this is wrong though:
MyGroup: IIf(IsNull([tblLCAmendHist
this is the original (no or stmnt):
MyGroup: IIf(IsNull([tblLCAmendHist
thank you
The basic syntax is:
IIF((Something=X) Or (Something=Y),WhatToDoIfEi therIsTrue ,WhatToDoI fNietherIs True)
Sample Query is attached
Access-EE.mdb
IIF((Something=X) Or (Something=Y),WhatToDoIfEi
Sample Query is attached
Access-EE.mdb
ASKER
Boag2000: I have an error here and wonder if you see it. I added the second IIF and the IsNOTnull. It says I have too many arguments.
thank you.
MyGroup: IIf(IsNull([tblLCAmendHist ory].[Date AmendAppro vedByBank] ) Or IIF(IsNotNull([tblLCAmendH istory].[W aitingBene ConsentYN] ),"Awaitin g Amend Approval by Bank","Recently Approved Amend by Bank")
thank you.
MyGroup: IIf(IsNull([tblLCAmendHist
IIf(IsNull([tblLCAmendHist ory].[Date AmendAppro vedByBank] ) Or IIF(IsNotNull([tblLCAmendH istory].[W aitingBene ConsentYN] ),"Awaitin g Amend Approval by Bank","Recently Approved Amend by Bank")
Did you examine the sample I posted?
As far as I can tell (and based on the working syntax and sample I posted0, you don't need the second IIF
IIf(IsNull([tblLCAmendHist ory].[Date AmendAppro vedByBank] ) Or (IsNotNull([tblLCAmendHist ory].[Wait ingBeneCon sentYN])," Awaiting Amend Approval by Bank","Recently Approved Amend by Bank")
Did you examine the sample I posted?
As far as I can tell (and based on the working syntax and sample I posted0, you don't need the second IIF
IIf(IsNull([tblLCAmendHist
ASKER
Ok Thank you sir...will test this. Have been out of pocket and willbe nxt few days.. Catch up soon...
Wait, ...what is "IsNotNull"?
I think you might need this:
IIf(IsNull([tblLCAmendHist ory].[Date AmendAppro vedByBank] ) Or (Not IsNull([tblLCAmendHistory] .[WaitingB eneConsent YN]),"Awai ting Amend Approval by Bank","Recently Approved Amend by Bank")
I think you might need this:
IIf(IsNull([tblLCAmendHist
ASKER
I see ... Thanks for catching that. I have not been at computer...on vacation At moment
ASKER
Boag: sorry for late response...getting caught up
It says I have a missing parenthesis or bracket: (i did put a parenthesis at very end but then said had wrong # arg's)
MyGroup: IIf(IsNull([tblLCAmendHist ory].[Date AmendAppro vedByBank] ) Or (Not IsNull([tblLCAmendHistory] .[WaitingB eneConsent YN]),"Awai ting Amend Approval by Bank","Recently Approved Amend by Bank")
It says I have a missing parenthesis or bracket: (i did put a parenthesis at very end but then said had wrong # arg's)
MyGroup: IIf(IsNull([tblLCAmendHist
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you for the help...enjoy the vacation!
ASKER