SELECT band, IIf(band=1,"Very Low Priority", IIF(band=2,"Low Priority",
IIF(band=3,"Medium Priority", IIF(band=4,"High Priority","Very High
Priority")))) As Priority FROM Table1
...or...
SELECT band, Choose(band,"Very Low Priority", "Low Priority", "Medium
Priority", "High Priority","Very High Priority") As Priority FROM Table1
...or...
SELECT band, Switch(band=1,"Very Low Priority", band=2,"Low Priority",
band=3,"Medium Priority", band=4,"High Priority",band=5,"Very High
Priority") As Priority FROM Table1
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------
> Hello,
>
[quoted text clipped - 12 lines]
>
> Cheers
Duane Hookom - 07 Sep 2006 15:18 GMT
Or don't use an expression at all. Create a small lookup table
tblPriorities
=============================
Band
Priority
With values like
1 Very Low Priority
2 Low Priority
...
You can add this table to your query and join the band fields.

Signature
Duane Hookom
MS Access MVP
> SELECT band, IIf(band=1,"Very Low Priority", IIF(band=2,"Low Priority",
> IIF(band=3,"Medium Priority", IIF(band=4,"High Priority","Very High
[quoted text clipped - 33 lines]
>>
>> Cheers
Graham R Seach - 07 Sep 2006 15:27 GMT
Ahh, the simplest methods are always the best! :-)
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------
> Or don't use an expression at all. Create a small lookup table
> tblPriorities
[quoted text clipped - 45 lines]
>>>
>>> Cheers