Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert IIF function in SQL Statement
Message
 
À
02/04/2003 20:49:43
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00772247
Message ID:
00773405
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform