Board logo

subject: Resolving ' The module name 'module name' is misspelled...' Error [print this page]


Resolving ' The module name 'module name' is misspelled...' Error

Like all other Microsoft Office applications, Microsoft Access also supports Visual Basic for Applications (VBA). Microsoft Access database components like, forms, modules, and reports use VBA. Hence, if a VBA project gets corrupted, it often affects the database components. As a result, situations rise when you might not be able to restore these components and would need to implement some special access database recovery measures to extract your precious data from corrupted database.

Microsoft Access allows to open Visual Basic Editor of a database by using ALT+F11 keys. But at times, when you do so, the results might not be as expected. In addition, you may encounter one of the below mentioned error messages:

"The module name 'module name' is misspelled or refers to a module that doesn't exist.

If the invalid module name is in a macro, an Action Failed dialog box will display the macro name and the macro's arguments after you click OK. Open the Macro window, and type the correct module name."

Or

"The Visual Basic for Applications project in this database is corrupt."

Further, on trying to close the same database, the application might hang.

Explanation

Altogether, the above symptoms indicate corruption of Visual Basic for Applications project.

User Action

As mentioned once, this type of corruption also affects other database components. Thus, it is imperative to protect your data saved in various queries, tables, and macros. To do so, you should apply the below sequence of steps for Access Recovery:

First create a new database, since, you need to import the database components.

You can then open the corrupt database and click Objects | Tables

To start importing, right-click a table and then 'Export' in the menu

When the Export dialog box appears, search for the database you created earlier

Select this database and click 'OK'. Your table has been imported.

Repeat the above steps for all database components you want to import

If this trick doesn't work, then the only feasible solution is running 'Compact and Repair' utility, restoring the database from backup, or using a third-party access database recovery application.

Stellar Phoenix Access Recovery is a comprehensive tool with user-friendly design that can repair corrupted Access database safely and efficiently. Designed for Microsoft Access 2007, 2003, 2002, and 2000, this access recovery tool can restore all tables, queries, macros, forms, modules, and other database components.




welcome to loan (http://www.yloan.com/) Powered by Discuz! 5.5.0