ACC2000: "Undefined Function in Expression" Error MessageID: Q208884
|
When you call a user-defined function from within an aggregate (totals) function, such as the Sum() function, in a report, you may receive the following error message:
Undefined function '<function name>' in expression.
The user-defined function is located in the report module.
Transfer the user-defined function from the report module to a global module.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
CAUTION: Following the steps in this example will modify the sample
database Northwind.mdb. You may want to back up the Northwind.mdb file
and perform these steps on a copy of the database.
ControlSource: =Sum(Notwork())
Function Notwork()
Notwork=8
End function
For more information about creating modules, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type "creating modules" in
the Office Assistant or the Answer Wizard, and then click Search to
view the topic.
Additional query words: pra
Keywords : kberrmsg kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 18, 1999