Microsoft Knowledge Base Email Alertz

KBAlertz.com: When you create a report that has the Detail section's

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 303192 - Last Review: January 31, 2007 - Revision: 4.1

ACC97: Running Sum Produces Incorrect Results

This article was previously published under Q303192
Novice: Requires knowledge of the user interface on single-user computers.

On This Page

SYMPTOMS

When you create a report that has the Detail section's Visible property set to No, and the Detail section contains a text box that displays a running sum, the first record at the top of each page may display incorrect results.

CAUSE

This behavior can occur if a text box in a group footer references the value of the running sum and the Keep Together property for that grouping is set to No.

RESOLUTION

To resolve this behavior, set the Keep Together property for the grouping to Whole Group:
  1. Click the OrderID field, and then on the Report Design toolbar, click Sorting and Grouping.
  2. In the Field/Expression box, click OrderID, and then in the Group Footer box, click Yes.
  3. In the Keep Together box, click Whole Group, and then quit the Sorting and Grouping dialog box.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Open the Northwind sample database, and then create a tabular AutoReport that is based on the Order Details table:
    1. In the Database window, click the Reports tab, and then click New.
    2. In the New Report dialog box, click AutoReport: Tabular, click the Order Details table in the box at the bottom of the dialog box, and then click OK.
  2. After the report is created, on the View menu, click Design View.
  3. In the Detail section, add a text box.
  4. Right-click the new text box, click Properties, and then click the Data tab.
  5. In the Control Source box, click UnitPrice, and then in the Running Sum box, click OverGroup.
  6. Click the Other tab, type RunSum in the Name box, and then close the Properties dialog box.
  7. Click the OrderID field, and then on the Report Design toolbar, click Sorting and Grouping.
  8. Click OrderID in the Field/Expression box, click Yes in the Group Footer box, and then quit the Sorting and Grouping dialog box.
  9. Click the Report Footer section, and then create two text boxes.
  10. Right-click the first text box, and then click Properties.
  11. Click the Data tab, type =[RunSum] in the Control Source box, and then quit the Properties dialog box.
  12. Right-click the second text box, and then click Properties.
  13. Click the Data tab, type =[UnitPrice] in the Control Source box, and then quit the Properties dialog box.
  14. Right-click the Detail section, and then click Properties.
  15. Click the Format tab, click No under Visible, and then close the Properties dialog box.
  16. Preview the report, and note that the first record on each page (except the first) produces an erroneous value in the text box that references the RunSum text box.

APPLIES TO
  • Microsoft Access 97 Standard Edition
Keywords: 
kbprb kbui KB303192
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please