Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Query
Message
From
26/09/2016 10:59:33
 
 
To
26/09/2016 10:42:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01641334
Message ID:
01641337
Views:
46
>Sir I have these code
>
>
>UPDATE cr_sale SET weight=SUM(crsalp.qty*crsalp.weight) from crsalp WHERE cr_sale.vou_no=crsalp.vou_no
>
>
>it says:
>
>File 'sum.prg' does not exist.
>
>Please help

Maybe you need a SELECT in front of the SUM()?
UPDATE cr_sale SET weight= SELECT SUM(crsalp.qty*crsalp.weight) from crsalp WHERE cr_sale.vou_no=crsalp.vou_no
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform