Where is this query being executed? Since you are using IIf successfully I guess it's at the client. I would use a local translation table MyCat containing Category_ID and Category_Type:
SELECT dbo_spresults.*, MyCat.Category_Type FROM dbo_spresults INNER JOIN MyCat ON dbo_spResults.Category_ID=MyCat.Category_Type.
Bill Manville Excel MVP/TA Oxford, England |