RE: running sum from a subform
From: Sprinks (Sprinks_at_discussions.microsoft.com)
Date: 01/10/05
- Next message: BruceM: "RE: =Date() Formatting Challenge"
- Previous message: Kevin B.: "Displaying Images in REPORT"
- In reply to: Millisa Eubanks: "RE: running sum from a subform"
- Next in thread: Millisa Eubanks: "RE: running sum from a subform"
- Reply: Millisa Eubanks: "RE: running sum from a subform"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 Jan 2005 06:07:04 -0800
Millisa,
Begin a new query, selecting the table or tables that contain the fields of
your expression. In the query design grid, in the Field row, enter a
calculated field, following the syntax:
CalcalatedFieldName: expression
For example, to calculate the extended price of a line item,
Extd: [Qty]*[UnitPrice]
Press the Exclamation Point to see the result, which will be a list of
[Qty]*[UnitPrice] for each line item in your table.
To sum this calculated field for ALL records in your database, switch to
Totals View (View, Totals). Change the default "Group By" in the Totals row
to Sum. Now click the Exclamation Point to see the result.
If you wish to calculate a total, grouping on some other field (such as
Order), drag that table's primary key (OrderNumber in this case) to the grid,
and keep the default "Group By" in the Total: row. This will now calculate a
separate total for each unique OrderNumber.
If, in addition, you have selection criteria, such as selecting records from
this year, drag the field to the grid, select WHERE in the Total: row, and
enter your criteria.
Hope that solves it.
Sprinks
"Millisa Eubanks" wrote:
> Nevermind the last post. I got it working agian but I'm not sure what went
> wrong or how I fixed it. Oh well. What I'm trying to do now is to figure
> out how to get a query to pull the values. I've tried my referance books but
> no dice. Could I please get some pointers
- Next message: BruceM: "RE: =Date() Formatting Challenge"
- Previous message: Kevin B.: "Displaying Images in REPORT"
- In reply to: Millisa Eubanks: "RE: running sum from a subform"
- Next in thread: Millisa Eubanks: "RE: running sum from a subform"
- Reply: Millisa Eubanks: "RE: running sum from a subform"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|