It's somewhat annoying, but I think you could achieve this effect by doing
the query in two passes.
First pass selects the data and outputs to a file.
Second pass does the calculations and outputs to print.
Using a second pass was also good for calculating percentages in the totals
and ordering by a result in the totals.
Haven';t thought too hard about it (just crawled out of bed) so I hope this
helps.
Regards
Evan Harris
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Don Cavaiani
Sent: Wednesday, 9 April 2008 2:56 a.m.
To: Midrange Systems Technical Discussion
Subject: Calculation at Sub-total level with qry400
I don't believe there is a way to get this MISSING "weighted average" Price
calculation: 4,105.63 divided by 3,726 performed at the sub-total level
( I know Sequel can do so).
Thanks,
Don
Don F. Cavaiani
IT Manager
Amerequip Corp.
920-894-7063
"It's amazing what you can accomplish if you don't care who gets the
credit." Harry S. Truman
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.