Search code examples
ms-accesseventsvbacorruption

Events not working in MS-Access


The database that I am working on (in MS-Access XP) seems to have become corrupted somehow. It no longer supports any events - clicks, change, update events, nothing seems to work. This is the error that I get:

The expression On Change you entered as the event property setting produced the following error: Object or class does not support the set of events.

What can I do to make events start working again? I have tried Tools->Database Utilities->Compact and Repair Database..., but it didn't help at all. Also, it hasn't been like this the whole time - events were originally working, but now nothing works, not even the auto-generated command buttons.


Solution

  • Compact and repair generally won't solve problems that happens in objects other than tables and indexes. Importing usually fixes those but maybe try a decompile and then an import. Decompile or how to reduce Microsoft Access MDB/MDE size and decrease start-up times

    I encountered the same problem once and documented my trouble shooting steps here. The expression On Click you entered ...

    Also see Corrupt Objects within a Corrupt Microsoft Access MDB

    Long discussion summarized.

    One page that might have a solution that might help is Errors using multiple versions of Access under Vista/Windows 7 This is basically a permissions problem into the registry.

    Another suggestion is to to repair the Office 2003 installation in control panel. A2003 then reverts to using Version 11 of the library, but only until A2007 is used again, then the problem reappears.

    The original poster stated "Okay, after a few restarts, it seems that removing the 2007 runtime did fix the problem for me. "