Nested IIF statements are quite possible but I suggest that you work in SQL view rather than the query builder. Something like
[tt]
IIF ([fldA] < 10, 1,
IIF ([fldA] < 20, 2,
IIF ([fldA] < 30, 3,
IIF ([fldA] < 40, 4, 5 )
[/tt]
is fairly easy to read displayed this way but
[tt]
IIF ([fldA] < 10, 1, IIF ([fldA] < 20, 2, IIF ([fldA] < 30, 3, IIF ([fldA] < 40, 4, 5 )
[/tt]
as it would be displayed in Query Builder is a bit obscure.