Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort not working as expected
Message
 
À
11/11/2008 15:32:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01361158
Message ID:
01361210
Vues:
12
I see your problem now, you are referring to neSigOpt oin the order by and that refers to the field in the source table NOT your IIF() result. You need to change the neSigOpt ref in orderby to the position nmber of the field as in;
SELECT LName, FName, Mi, ThID, iif(empty(neSigOpt),1,neSigOpt), lPin, lFingerReg, ;
  PADR(ConfirmType(neSigOpt, lPin, lFingerReg), 30) AS ConfData, isactive, lOverride ;
FROM Ther ;
&lcFilter ;
INTO CURSOR SigTypeR;
 ORDER BY isActive, 4 DESC, 8, LName, FName, Mi, ThID
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform