A
AccessIM
I am trying to create a multiple IIf statement and it just isn't working.
I want to base the contents of one field ([Type]) on the contents of two
other fields ([ReserveAisle] and [HandStacked]). Here is the criteria:
If the [HandStacked] field contains a 2 or 3 and the [ReserveAisle]
contains a
13, 14, 21 or 33 I would like the [Type] field to say "Hand Stacked"
otherwise it
should say "Pallet".
Here are two IIf statements I have tried but don't work:
IIf([HandStacked]>1,IIf([HandStacked]<4,IIf([ReserveAisle]=13,IIf
([ReserveAisle]=14,IIf([ReserveAisle]=21,IIf([ReserveAisle]=33,"Hand
Stacked","Pallet"))))))
IIf([HandStacked]=2 or [HandStacked]=3 and [ReserveAisle]=13 or
[ReserveAisle]=14 or [ReserveAisle]=21 or [ReserveAisle]=33,"Hand
Stacked","Pallet")
Thank you so much!
I want to base the contents of one field ([Type]) on the contents of two
other fields ([ReserveAisle] and [HandStacked]). Here is the criteria:
If the [HandStacked] field contains a 2 or 3 and the [ReserveAisle]
contains a
13, 14, 21 or 33 I would like the [Type] field to say "Hand Stacked"
otherwise it
should say "Pallet".
Here are two IIf statements I have tried but don't work:
IIf([HandStacked]>1,IIf([HandStacked]<4,IIf([ReserveAisle]=13,IIf
([ReserveAisle]=14,IIf([ReserveAisle]=21,IIf([ReserveAisle]=33,"Hand
Stacked","Pallet"))))))
IIf([HandStacked]=2 or [HandStacked]=3 and [ReserveAisle]=13 or
[ReserveAisle]=14 or [ReserveAisle]=21 or [ReserveAisle]=33,"Hand
Stacked","Pallet")
Thank you so much!