Fix Access Error: Object or Class Does Not Support the Set of Events
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.

- 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 proceeding with database decompilation or structural changes, ensure you create a secure backup copy of your ACCDB file to prevent unintended data loss.
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.
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.
Close the database, then reopen it normally. Navigate to the Database Tools tab and click 'Compact and Repair Database'.
Open the VBA Editor by pressing ALT+F11. Click on the 'Debug' menu at the top and select 'Compile [Your Database Name]'.
Save your VBA project, close the editor, and run the 'Compact and Repair Database' tool one final time before testing the form.

Create a Blank Database and Import Objects
If the database container itself is corrupted, migrating your objects to a fresh file can resolve persistent event errors.
Verify ActiveX Control Compatibility
Ensure the third-party ActiveX control is fully compatible with your current Office version.
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. Visit the WPS Website: Go to the official WPS Office website to download the free installation package.
- 2. Install the Software: Run the downloaded installer and follow the on-screen instructions to set up WPS Office on your device.
- 3. Open Your Documents: Launch WPS Office to easily open, edit, and manage your Word, Excel, and PowerPoint files.

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.




