J
Jeff Monroe
I have a query that contains a field called [loccode]. I am filterin
data as follows:"61 or 62", "68 or 69" and "between 71 and 79".
Each filter criteria equals a department area:
"61 or 62" = Dept Area A; "68 or 69" = Dept Area B and "71 through 79
= Dept Area C.
I want to populate field [Dept Area] with the three items listed above
as per the [loccode] criteia.
My individual iif statements are as follows:
Dept Area: IIf([loccode] = "61" Or "62","Dept A","")
Dept Area: IIf([loccode] = "68" Or "69","Dept B","")
Dept Area: IIf([loccode] Between "71" And "79","Dept C","")
They work fine individually in their own queries, but I want them i
one query. I've tried different ways of nesting the statements, bu
only get errors.
Thanks for any help offered.
Jef
data as follows:"61 or 62", "68 or 69" and "between 71 and 79".
Each filter criteria equals a department area:
"61 or 62" = Dept Area A; "68 or 69" = Dept Area B and "71 through 79
= Dept Area C.
I want to populate field [Dept Area] with the three items listed above
as per the [loccode] criteia.
My individual iif statements are as follows:
Dept Area: IIf([loccode] = "61" Or "62","Dept A","")
Dept Area: IIf([loccode] = "68" Or "69","Dept B","")
Dept Area: IIf([loccode] Between "71" And "79","Dept C","")
They work fine individually in their own queries, but I want them i
one query. I've tried different ways of nesting the statements, bu
only get errors.
Thanks for any help offered.
Jef