Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Using Sum in Report of Access 97

Posted on 1999-01-13
Medium Priority
388 Views
Dear All Expert;
I have a problem to ask you...Now I am developing application about Tax.
It is Tax from every product and many group of product.
Example :
Can I design Report to find Average of Tax of each group of product ?
Structure :
Group A Have product 1,2,3,4
Group B Have Product 5,6,7,8

Beside Tax from each product , Can I find average Tax from Tax of each product
group ?
=====================================
When I do myself., I create Tax of each product group as Calculated Field in
Product Group Footer. But I can not take Tax of each product group from Product
Group Footer to find Average Tax of all group..( Average Tax of GroupA and
GroupB )

0
Question by:u3520384
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
1 Comment

LVL 7

Accepted Solution

Dedushka earned 400 total points
ID: 1973419
Hi, u3520384!

>I create Tax of each product group as Calculated Field in
Product Group Footer

Assume in your report based on table Product(ProductId, ProductName, ProductGroup, Tax) you have calculated field txtAvgForEachGroup and its ControlSource = Avg([Tax]).

Resolution.
-----------
1. Place on Product Group Footer invisible text box txtAutoNo, set its ControlSource "=1" and Running Sum to "Over All".
2. Place on Product Group Footer invisible text box txtRunningAvg, set its ControlSource "=[txtAvgForEachGroup] and Running Sum to "Over All".
3. Place on Report Footer text box txtAvgForAllGroups and set its ControlSource to "=[txtRunningAvg]/[txtAutoNo].

Cheers.
Dedushka
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
###### Suggested Courses
Course of the Month9 days, 7 hours left to enroll