FIX: Domain Functions Available Only Within SQL Statement (102479)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q102479 SYMPTOMS
If you try to use the domain aggregate function examples provided in the
Microsoft Visual Basic version 3.0 for Windows Help file, you will
receive this error message:
Reference to undefined Function or array
CAUSE
The examples for the domain aggregate functions are incorrect. The domain
aggregate functions, like the SQL aggregate functions, can be used only
within an SQL statement.
WORKAROUND
Use the domain aggregate functions within an SQL statement, as in the
following example. Enter the following as one, single line:
Set Dn = Db.CreateDynaset("Select DAvg(""AU_ID"", ""AUTHORS"")
FROM Authors") STATUS
Microsoft has confirmed this to be a bug in the Visual Basic version
3.0 Help file. This problem has been corrected in Visual Basic version 4.0.
Modification Type: | Major | Last Reviewed: | 10/28/2003 |
---|
Keywords: | kbbug kbfix KB102479 |
---|
|