View Full Version : modifying criteria based on fields other than the one it's modifying


nova
10-31-2001, 09:28 AM
ok, i have a database. i have a field named type. i have two other fields name processor and make/model. now if the type field value is "desktop" then i don't want to print the make/model field. if the type field value is "laptop" then i don't want to print the processor field. please help.

araskas
11-16-2001, 01:31 PM
SELECT Type, IIF ( Type = "LapTop" , " " , [Processor]) AS Processor1, IIF ( Type = "DeskTop" , " " , [Make/Model]) AS [Make/Model1]
FROM
myTable;