Others

Fix Access Error: Object or Class Does Not Support the Set of Events

Aamir Naveed AkramAamir Naveed Akram Nov 2, 2026 870 views

Question details

The user encounters an 'Object or class does not support the set of events' error when opening a startup form in an Access database containing a third-party ActiveX control.

How to Fix Access Error: Object or Class Does Not Support the Set of Events
Product
Microsoft Access
Device & OS
not provided
Scenario
Opening a startup form in an ACCDB database or after generating an ACCDE file that relies on a third-party ActiveX control.
Observed behavior
An event error is triggered upon form startup. Compiling the VBA project temporarily stops the error in the ACCDB, but it returns immediately after creating an ACCDE file.
Before you start

Before proceeding with database decompilation or structural changes, ensure you create a secure backup copy of your ACCDB file to prevent unintended data loss.

Solution 1Recommended

Decompile, Compact, Repair, and Compile the Database

Use this method to clear corrupted compiled VBA states and refresh the database code structure.

Hidden corruption within the compiled state of your database can cause event errors with ActiveX controls. Decompiling forces Access to discard the compiled code and rebuild it from the readable VBA source.

1
Decompile the Database

Create a Windows shortcut to MSACCESS.EXE, append the /decompile switch to the target path, and use this specific shortcut to open your database file.

2
Compact and Repair

Close the database, then reopen it normally. Navigate to the Database Tools tab and click 'Compact and Repair Database'.

3
Compile the VBA Project

Open the VBA Editor by pressing ALT+F11. Click on the 'Debug' menu at the top and select 'Compile [Your Database Name]'.

4
Final Compact and Repair

Save your VBA project, close the editor, and run the 'Compact and Repair Database' tool one final time before testing the form.

Decompile, Compact, Repair, and Compile the Database
Empty VBA Procedures: While in the VBA Editor, take a moment to delete any empty VBA event procedures and carefully review the form's On Open event for anomalies.
Free Microsoft Office alternative

Looking for a Reliable and Free Office Suite? Try WPS Office

While WPS Office does not directly manage Microsoft Access databases, it is an exceptional free alternative for your daily document, spreadsheet, and presentation needs. It provides a lightweight, fast, and familiar interface without expensive subscription fees.

  1. 1. Visit the WPS Website: Go to the official WPS Office website to download the free installation package.
  2. 2. Install the Software: Run the downloaded installer and follow the on-screen instructions to set up WPS Office on your device.
  3. 3. Open Your Documents: Launch WPS Office to easily open, edit, and manage your Word, Excel, and PowerPoint files.
Free and lightweight office suite for daily productivity tasksHighly compatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar user interface for seamless migration without a learning curveBuilt-in PDF editing, conversion, and collaboration tools
microsoft office alternative - wps office

Frequently Asked Questions

What does the 'Object or class does not support the set of events' error mean?

This error usually indicates a disconnect between an object, such as a third-party ActiveX control, and the VBA code attempting to handle its events. It is frequently caused by compiled code corruption, missing references, or version incompatibilities.

Why does compiling the database into an ACCDE bring the error back?

Creating an ACCDE strips out the readable source code and relies entirely on the compiled state. If an ActiveX control is incompatible or has a corrupted reference, the forced compilation process exposes the broken event bindings, preventing the form from executing correctly.

Can I run 32-bit ActiveX controls on a 64-bit version of Microsoft Access?

No, 32-bit ActiveX controls are not natively compatible with 64-bit Microsoft Office installations. You must obtain a specifically compiled 64-bit version of the control from the vendor to resolve event and compatibility errors.