you can use "nested" IIf() functions, but you have to think the logic
through carefully or you may find yourself coming up with unexpected
results. for instance, the logic path can be
If this is true, then do this, otherwise
If this is true, then do this, otherwise
If this is true, then do this, otherwise do this
IIf(this is true, x, IIf(this is true, y, IIf(this is true, z, a)))
or perhaps
If this is true, then
If this true, then do this, otherwise do this
otherwise do this
IIf(this is true, IIf(this is true, x, y), z)
as you can see, nesting can quickly become very complex. and you need to be
careful to include an Else clause in every IIf() function, or you could end
up with a "dangling" calculation that returns no value. there are "related"
functions Choose() and Switch() that you may find useful (see Access Help
for details), or you may want to consider writing a custom function to
process the data and return the value you need to the query.
hth