I am using Access 2007 and in one of my queries, I have a lengthy nested IIF statement where I "Group" records based on the [Cost] Field...can this portion be shortened/condensed with another function I'm not aware of?
[FONT="]
[/FONT]
[FONT="]
Code:
IIf([Cost]<0,"Proceeds Recv'd",
IIf([Cost]=0,"$0",
IIf([Cost]<5000,"$1-$4,999",
IIf([Cost]<10000,"$5,000-$9,999",
IIf([Cost]<25000,"$10,000-$24,999",
IIf([Cost]<50000,"$25,000-$49,999",
IIf([Cost]<75000,"$50,000-$74,999",
IIf([Cost]<100000,"$75,000-$99,999",
IIf([Cost]<150000,"$100,000-$149,999",
IIf([Cost]<250000,"$150,000-$249,999",
IIf([Cost]>=250000,"$250,000+","Blank")))))))))))
AS [Cost Range]