Open the database.
Press Alt+F11 to activate the Visual Basic Editor.
Select Tools | References...
The references that are in use have their check box ticked; they are listed at the top.
Clear the check box for those that begin with MISSING:, then click OK.
Select Debug | Compile <projectname> to see if the code is OK now.