The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access project (.adp). SYMPTOMSIn a Microsoft Access project, if you place a calculation inside an aggregate (totals) function, you may see one of the following problems:
-or-
CAUSEThis problem may occur when you set the ControlSource property of a text box on a form or a report to a calculated value inside an aggregate function. For example: =Sum([Quantity]*[UnitPrice]) RESOLUTIONCreate a field in the record source of the form or the report based on the expression, and then use the aggregate function on that field in the form or the report. For example, create a new field named TotalPrice in the Order Details Extended view. The expression to calculate TotalPrice is: [Order Details].[Quantity]*[Order Details].[UnitPrice]Then add a text box to the form's footer, and set the ControlSource property to =Sum([TotalPrice]). MORE INFORMATIONAggregate functions include Avg, Count, Max, Min, and Sum. Steps to Reproduce Behavior
Additional query words: prb
Keywords : kbdta AccessCS |
Last Reviewed: July 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |