ACC: Valid Sum() Function Returns #Name? in Calculated ControlID: Q95442
|
Novice: Requires knowledge of the user interface on single-user computers.
If you open a form in Form view and have two or more calculated controls,
you may receive a "#Name?" error in all of the calculated controls on the
form, even if the expression for an individual control is valid.
All of the domain functions are based on the same query (over the underlying dynaset). If one of the bound functions on the form has a binding error, all of the functions on the form will return an error.
Find the control or controls that use an invalid expression. Either remove the control or correct the expression that you use for the controls.
You can use aggregate (totals) functions to calculate results only for fields, not for controls. Examples of aggregate functions are Sum(), Avg(), and Count().
Text Box
----------------------
ControlName: Freight
ControlSource: Freight
Text Box
-----------------------------
ControlName: Test1
ControlSource: =Sum([Freight])
Text Box
----------------------------
ControlName: Test2.
ControlSource: =Sum([Test1])
Additional query words: poundname
Keywords : kberrmsg kbusage FmsHowto
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 19, 1999