How to Fix Microsoft Access Command Buttons Showing OLE or ActiveX Errors
Question details
Users are unable to use command buttons on their Microsoft Access forms because clicking them triggers a communication error with an OLE server or ActiveX control.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Executing a global function, such as DoCmd.Close, via a command button on a newly created or existing database form.
- Observed behavior
- The command buttons stop working entirely and display an error message stating that the database could not communicate with an OLE server or ActiveX control.
Before making structural changes or deleting form objects, ensure you create a backup copy of your Access database file (.accdb or .mdb) to prevent accidental data loss.
Import Objects into a New Blank Database
Creating a new database and importing your existing tables, queries, and unaffected forms can effectively resolve underlying database corruption causing the OLE/ActiveX error.
Database corruption can often manifest as OLE or ActiveX communication errors on specific forms. Migrating your functional database objects to a fresh file is the most reliable way to clear these hidden corruptions.
Open Microsoft Access, go to the 'File' menu, and select 'Blank Database' to create a new, empty database file.
Navigate to the 'External Data' tab on the ribbon. Click on 'New Data Source', select 'From Database', and then choose 'Access'.
Click 'Browse' to locate and select your corrupted database file. Ensure the option to import tables, queries, forms, reports, macros, and modules into the current database is selected, then click 'OK'.
In the Import Objects dialog, select all the tabs and choose the objects you want to import. It is highly recommended to exclude the specific form that is triggering the error, as it may carry the corruption over. Click 'OK' to finish.

Inspect and Rebuild the Affected Form
If the error isolates to a single, recently created form, the specific ActiveX control or the form itself might be corrupted and needs to be rebuilt.
Looking for a Lightweight, Reliable Office Suite?
While WPS Office does not offer a direct database alternative to Microsoft Access, it serves as a powerful, free, and lightweight alternative for all your Word, Excel, and PowerPoint needs. If you are experiencing frequent crashes or errors with Microsoft Office apps, consider switching to WPS Office for a smoother, highly compatible document experience.
- 1. Download the installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install the application: Run the downloaded installation file and follow the simple on-screen instructions to set up WPS Office on your computer.
- 3. Open your existing files: Launch WPS Office and easily open your existing Word, Excel, and PowerPoint files with complete formatting preservation.

Frequently Asked Questions
What causes the OLE server or ActiveX control error in Microsoft Access?
This error is typically caused by database or form corruption, an unregistered or missing ActiveX control (.ocx), broken VBA references, or issues with a recent Windows security update that affects OLE communication.
How do I check for missing VBA references in Access?
Open your Access database, press ALT + F11 to open the VBA Editor, and click on 'Tools' > 'References'. Look for any checked items that start with 'MISSING:'. Uncheck these items, locate the correct library if needed, and recompile your database.
Can I fix ActiveX errors without recreating my entire database?
Yes, if the issue is localized. You can try deleting and recreating the specific corrupted form, or re-registering the required ActiveX components using the 'regsvr32' command in the Windows Command Prompt. However, importing objects into a new database remains the most foolproof method for resolving underlying corruption.




