Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert IIF function in SQL Statement
Message
 
To
02/04/2003 20:49:43
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00772247
Message ID:
00773405
Views:
12
Your current query should work in Access.

In SQL, it will looks like this:
SELECT MONTHLYSALES.*, 
case MONTHLYSALES.POINT>=10 then "Good" else
   case MONTHLYSALES.POINT >=5 AND MONTHLYSALES.POINT<10 then "Enough" else "Bad" end end as SALESPOINT FROM MONTHLYSALES ORDER BY SALESMANCODE
>Could you please give me an example .. for Ms. Access and also if I use Ms. SQL .. many thanks in advance
>
>Regards
>Winan
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform