Office Apps Crashing

Fix VBE7.dll Crashes When Opening Forms in Microsoft Access 2013

Ayan MasoodAyan Masood Nov 22, 2026 868 views

Question details

Resolve VBE7.dll crashes in Access 2013 when opening certain database forms.

Fix VBE7.dll Crashes When Opening Forms in Microsoft Access 2013
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.
Before you start

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.

Solution 1Recommended

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.

1
Close Access

Exit Access and confirm that no other users have the affected database open.

2
Open a copy with the decompile switch

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.

3
Compact and repair the database

Close Access, reopen the database copy, and select File > Info > Compact & Repair Database.

4
Recompile the VBA project

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.

Decompile and Repair the Affected Access Database
Review security before changing macros: Converting macros to VBA is not a standard fix for this error and can introduce greater security risks. Review File > Options > Trust Center > Trust Center Settings > Macro Settings, and enable active content only when you trust the database.
Free Microsoft Office alternative

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.

A free, lightweight suite with a familiar interfaceCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXOpen and edit everyday office files alongside your Access troubleshooting
microsoft office alternative - wps office

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.