Ex: =IIF(x12=4,"GREEN",IIF(x12=3,"Blue",IIF
(x12=2,"RED","WHITE")))
In addition, is there perhaps an alternative, more
efficient way to do this?
In a query you do NOT use the initial = sign.
If the criteria values are number datatypes:
Ex:IIf([FieldName]=4,"Green",IIf([FieldName]=
3,"Blue",IIf([Fieldname]=2,"White","No value")))
If the criteria values are text datatype surround them with double
quotes also:
Ex:IIf([FieldName]="4","White", etc.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
--
Duane Hookom
MS Access MVP
--
"Big Tony" <anon...@discussions.microsoft.com> wrote in message
news:2b27301c46839$9ea69b80$a501...@phx.gbl...
=Switch(x12>4,"WHITE",x12=4,"GREEN",x12=3,"Blue",x12=2,"RED",x12<2,"WHITE")
Hope This Helps
Gerald Stanley MCSD
>.
>
>.
>
>.
>