Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Column
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01219492
Message ID:
01219493
Views:
9
>I keep getting an error that says: [SQL Column " missing.]
>
>I don't see anything wrong with my SQL Code:
>
>
>SELECT ;
>      Emp, Dept, Netwgt, Date, PN ;
>   FROM SCRAP ;
>   WHERE ;
>      LEFT(DATE,5)=>LEFT(DTOC(.txtBegDate.Value),5) AND ;
>      LEFT(DATE,5)<=LEFT(DTOC(.txtEndDate.Value),5) AND ;
>      SUBSTR(DATE,7,2)=SUBSTR(DTOC(.txtBegDate.Value),7,2) AND ;
>      NOT remnant ;
>   ORDER BY ;
>      LEFT(ALLTRIM(DEPT), 2) + SUBSTR(Date, 7, 2) + LEFT(DATE, 5) ;
>   INTO TABLE C:\Scrap\Scrap_Rpt
>
You cannot ORDER By expression. If it's really important then you should include this expression in the field list:
Select LEFT(ALLTRIM(DEPT), 2) + SUBSTR(Date, 7, 2) + LEFT(DATE, 5) as listorder,emp.... ;
Order by 1
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform