One more snag,
The expression I used to get the total is
Expr1: [Total Proposal Value]+[Total Awarded Value]
However, where one of the two fields has an empty value the calculation does
not occur.
--
Lori
:
You can use either queries, forms or reports, depending on what you want to
do. I usually use a query.
You don't give us the details of your Totals (aggregate) query, so I'll have
to make one up. Suppose you have three fields (Field1, Field2 and Field3).
Assume further that you are Grouping on Field1 and summing fields 2 & 3.
Lastly, you want to create a field [Average] that is the average of the
summed fields. You would do something like this:
SELECT Field1, Sum(Field2) AS SumOfField2, Sum(Field3) AS SumOfField3,
Sum([field2])/Sum([field3]) AS Average FROM Table1
GROUP BY Field1;
Alternately, in the Query Builder you would put:
Average: Sum([field2])/Sum([field3])
in the Field Row and
Expression
in the Total: Row of you Totals query.
BTW, it's refreshing to note that you didn't ask how to store this value.
You should never (ie rarely) store calculated values.
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
I have a query that groups data by the week showing the total of all
proposals written and a total of all jobs awarded. I want the query to
include a third column to calculate the the results of these two
subtotals.
I'm used to working in excel and am not sure whether to use queries, forms
or
reports for these types of actions.
Thanks for your help.
-- Lori