Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query with a running total
Message
From
19/07/2006 20:10:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
19/07/2006 12:40:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01137566
Message ID:
01137893
Views:
9
>Thanks for your reply Hilmar,
>
>I need a query like this for both on-screen, as well as report generation.
>I've tried out Borislav's code and it works. However, would you be able to specify how one can use report variables to create the same situation within a report?

Create a report variable, name it, for example, "RunningTotal", assign it the expression to be totalled, for example "Amount". Go to calculations, and select "Sum". Also check the "reset" expression - perhaps you want to reset to zero every time some expression changes.

I am sorry that I can't verify the steps right now, since I am at a computer that doesn't have Visual FoxPro installed.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform