Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local View Sum Up
Message
From
19/06/2008 02:31:25
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Local View Sum Up
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01325352
Message ID:
01325352
Views:
67
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.



Regards,

Ransome
Next
Reply
Map
View

Click here to load this message in the networking platform