Hi,
You might be missing a reference.
[tt]
In Access Help - Search for 'Missing Reference' :
Troubleshoot undefined functions and references to projects or libraries
Show All
Hide All
When you open a Microsoft Access file that contains references to projects or libraries that aren't in the location specified in the References dialog box, Access tries to find the projects or libraries. However, if Access can't find a referenced file, you might have to set the reference manually. You might not be aware that you need to fix a missing reference until you receive an "undefined function" message or a message that Access can't find a project or library when you try to run a query or a Microsoft Visual Basic procedure (procedure: A sequence of declarations and statements in a module that are executed as a unit. Procedures in Visual Basic include both Sub and Function procedures.). To fix a missing reference, open a module in Design view and click References on the Tools menu. Then clear the check box next to any missing references and set the references you want.
You can't call a class module from a query, form, report or macro. Store a Visual Basic procedure in a standard module if you need to call it from a query, form, report, or macro.
You might receive an "undefined function" message when you open a data access page (data access page: A Web page, published from Access, that has a connection to a database. In a data access page, you can view, add to, edit, and manipulate the data stored in the database. A page can also include data from other sources, such as Excel.) outside of Access if the data access page contains a function that isn't available outside of Access.
[/tt]
Skip,
[red][/red]
![[tongue] [tongue] [tongue]](/data/assets/smilies/tongue.gif)