The information in this article applies to:
SYMPTOMSUsing Microsoft Access, you can create code modules in an .mdb file that can be used by predefined queries. When you open the query in Access, the code works as expected. However, if you use ODBC or DAO to access the predefined query, the following error message appears: For example, assume that a function, called PlusTen, that adds 10 to some value is defined in Access as follows:
You could have the following SQL statement in a predefined query:
With the Access 7.0 or Access 97 ODBC Drivers included with Visual C++
versions 4.x and Visual C++ version 5.0, you receive an error similar to
the following:
If you use DAO 3.0 (included with Visual C++ 4.x) or DAO 3.5 (included with Visual C++ 5.0), the following message appears in the Output window of the debugger:
CAUSEODBC and DAO do not use or know anything about the code modules inserted into an .MDB file by Access. Only Access recognizes the modules. STATUSThis behavior is by design. Additional query words: Jet kbvc400 kbvc410 kbvc420 kbvc500 kbvc600
Keywords : kbprg kbDAO kbDatabase kbMFC kbODBC kbVC |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |