Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local View Sum Up
Message
From
19/06/2008 02:35:08
 
 
To
19/06/2008 02:31:25
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01325352
Message ID:
01325354
Views:
14
>Dear all,
>
>A table call batch with fields itemcode, batchid, qtynow, qtyatfirst.
>
>I use a local view to sum up the quantity at VFP 6 and have not problem; while at VFP9 it prompt me :
>SQL : group by clause is missing or invalid.
>
>The SQL statment is select itemcode, qtynow, sum(qtynow) as total ;
>where itemcode=?thisform.query group by itemcode order by itemcode
>
>thisform.query is a property I set at the form to holde the specific itemcode I want to check.
>
>
>What is the wrong and how can I solve the problem.

You can additionally Group By qtynow (or Set EngineBehavior 70).



hth
-Stefan
Previous
Reply
Map
View

Click here to load this message in the networking platform