Morris & Paumir-
You'll also get this error if your project isn't compiled and you have an error in your code. Open any module in the Visual Basic Editor and choose Compile from the Debug menu. Checking Tools / References is also a good idea. You typically don't need the Utility library (an artifact in a database converted from Access 97 or earlier). Don't dink with the VBA library - the one checked at the top of the list is usually the correct one for your release. If you have any marked "Missing", uncheck those and try to compile the project.
If all this fails, create a new database and import all the objects from the old one to get rid of any corruption.
John Viescas, author
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
|