Be sure that you include all required references. To check for and remove missing references:
- Open your database.
- Press ALT+F11 to switch to the Visual Basic Editor.
- On the Tools menu, click References.
- Any check boxes that are marked as MISSING: <referencename> indicate a missing reference. Click to clear the check box for the type library or object library marked as
MISSING: <referencename>.
An alternative to removing the reference is to restore the referenced file to the path that is specified in the
References dialog box. If the referenced file is in a new location, clear the MISSING: <referencename> reference, and then create a new reference to the file in its new folder.