G
Guest
Hi Everyone - need some help and you guys are ALWAYS coming to my rescue!!!
OK - i have a query with an Expression that right now is as follows:
Expr1: IIf([CurrentWeek]![Original_SVS_ID]="UNDELIVERABLE,
[Exp","Undeliverable - " &
[CurrentWeek]![Reward_Period],[CurrentWeek]![Reason] & " - " &
[CurrentWeek]![Reward_Period])
Where if the field says "Undeliverable, [Exp", it returns something else. I
actually have two additional conditions that, if found, the query needs to
return the same result. More specifically, in addition to the "Undeliverable,
[Exp" value, if "HURRICANE, [Expires" or "HIGH_VALUE_CARD, [Ex" is in the
field, I need the query to return the same result - "Undeliverable - " &
[CurrentWeek]![Reward_Period],[CurrentWeek]![Reason] & " - " &
[CurrentWeek]![Reward_Period])
Right now I am trying an Or condition in the middle where it reads:
Expr1: IIf([CurrentWeek]![Original_SVS_ID]="UNDELIVERABLE, [Exp" Or
"HURRICANE, [Expires", "Undeliverable - " &
[CurrentWeek]![Reward_Period],[CurrentWeek]![Reason] & " - " &
[CurrentWeek]![Reward_Period])
And now it is returning the same result for anything that is in the field -
this isn't right. I tried writing two separate IIf statements with just an Or
separator and it told me I had two many arguements.....
Can someone help me out? I would appreciate!!!
Thanks so much in advance.....
Victoria
OK - i have a query with an Expression that right now is as follows:
Expr1: IIf([CurrentWeek]![Original_SVS_ID]="UNDELIVERABLE,
[Exp","Undeliverable - " &
[CurrentWeek]![Reward_Period],[CurrentWeek]![Reason] & " - " &
[CurrentWeek]![Reward_Period])
Where if the field says "Undeliverable, [Exp", it returns something else. I
actually have two additional conditions that, if found, the query needs to
return the same result. More specifically, in addition to the "Undeliverable,
[Exp" value, if "HURRICANE, [Expires" or "HIGH_VALUE_CARD, [Ex" is in the
field, I need the query to return the same result - "Undeliverable - " &
[CurrentWeek]![Reward_Period],[CurrentWeek]![Reason] & " - " &
[CurrentWeek]![Reward_Period])
Right now I am trying an Or condition in the middle where it reads:
Expr1: IIf([CurrentWeek]![Original_SVS_ID]="UNDELIVERABLE, [Exp" Or
"HURRICANE, [Expires", "Undeliverable - " &
[CurrentWeek]![Reward_Period],[CurrentWeek]![Reason] & " - " &
[CurrentWeek]![Reward_Period])
And now it is returning the same result for anything that is in the field -
this isn't right. I tried writing two separate IIf statements with just an Or
separator and it told me I had two many arguements.....
Can someone help me out? I would appreciate!!!
Thanks so much in advance.....
Victoria