Fix VBE7.dll Crashes When Opening Forms in Microsoft Access 2013
Question details
Resolve VBE7.dll crashes in Access 2013 when opening certain database forms.

- Product
- Microsoft Access 2013
- Device & OS
- not provided
- Scenario
- A user opens forms that may contain macros or be associated with a corrupted VBA project.
- Observed behavior
- Access may crash with a VBE7.dll error when certain forms open.
Check whether the crash occurs in one database or across multiple databases, and make a copy of the affected database before attempting repairs. Close other users' connections so you can work with the database exclusively.
Decompile and Repair the Affected Access Database
Use this approach when the crash is limited to one database and its VBA project may be corrupted.
Exit Access and confirm that no other users have the affected database open.
Open Command Prompt and run the Access executable with the copied database path and the /decompile switch, for example: "C:\path\to\MSACCESS.EXE" "C:\path\to\database-copy.accdb" /decompile. Replace both paths with the locations on your computer.
Close Access, reopen the database copy, and select File > Info > Compact & Repair Database.
Press Alt+F11 to open the Visual Basic Editor, then select Debug > Compile. Correct any reported compilation errors, save the project, and test the affected forms.

Repair Microsoft Office When Multiple Databases Crash
Use this approach if the same error affects multiple Access databases.
Use WPS Office for Everyday Office Documents
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make moving everyday files straightforward. WPS Office does not repair Access crashes or replace Access database forms and VBA.

Frequently Asked Questions
How can I tell whether the database or Access installation is causing the crash?
Test more than one database in Access. If only one crashes, investigate its VBA project; if multiple databases crash, try repairing Office through Control Panel > Programs > Programs and Features.
What does the Access /decompile switch do?
The /decompile switch opens a database while discarding compiled VBA code, allowing you to compile the project again. Run it on a database copy, then use Compact & Repair Database and Debug > Compile.
Should I convert Access macros to VBA to stop the crash?
Not as a first step. VBA can perform broader actions than built-in macros and may present greater security risks. Review Trust Center > Macro Settings and investigate the VBA project before changing code.
Can WPS Office open and repair my Access database forms?
No. WPS Office can work with common document, spreadsheet, and presentation formats, but it does not repair Access databases or run Access forms and VBA.




