Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sort not working as expected
Message
 
To
11/11/2008 15:32:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361158
Message ID:
01361210
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform