ACC2000: Valid Sum() Function Returns #Error? in Calculated CTRLID: Q199355
|
If you open a form in Form view and have two or more calculated controls, you may receive an "#Error?" 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 recordset). 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. Then, either remove the control or correct the expression that you use for the control.
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 prb
Keywords : kberrmsg kbusage kbdta FmsHowto
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999