Article ID: 166113 - Last Review: September 1, 2005 - Revision: 3.0 You cannot use user-defined modules through ODBC or DAOThis article was previously published under Q166113 SYMPTOMS
Using 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:
Undefined function '<function name>' in expression
Undefined function 'PlusTen' in expression State:37000, Native:-3102, Origin:[Microsoft][ODBC Microsoft Access 97 Driver]
DAO Call Failed.
m_pQueryDef->m_pDAOQueryDef->OpenRecordset(
COleVariant((long)m_nOpenType), COleVariant((long)m_nOptions),
&m_pDAORecordset)
In file daocore.cpp on line 3327
scode = 800A0C0D
Error Code = 3085
Source = DAO.Database
Description = Undefined function 'PlusTen' in expression.
CAUSE
ODBC and DAO do not use or know anything about the code modules inserted
into an .mdb file by Access. Only Access recognizes the modules.
STATUS
This behavior is by design. APPLIES TO
| Article Translations
|
Back to the top
