Serious issues have recently appeared in my Access database. The errors that we receive show that they indicate corruption - here are the most common:
- Error accessing the file. The network connection may have been lost.
- Error compiling this function.
- There are no errors, access just ends completely.
I noticed that these errors only happen with the compiled database. If I decompile it, it works fine. If I take an uncompiled database and compile it, it will work fine - until the next time I try to open it. It seems that compiling the database into a .ACCDE file solves the problem, and that is what I did, but one person said that the problem returned for her, and I am very nervous.
I tried to export all the objects in the database to text, starting from the new database, and import them all again, but this does not solve the problem. As soon as I import all the objects into a clean database, the problem will return.
One last point that seems related, but I don’t understand how to do it. The problem arose almost immediately after I added some basic modules to the database. These class modules use the VBA Implements keyword to clear my code by introducing some polymorphism. I don't know why this will cause a problem, but time seems to indicate a connection.
I was looking for an explanation, but have not yet found it. Anyone have any suggestions?
EDIT: the database includes several links in addition to the standard ones:
- Microsoft ActiveX 2.8 Data Objects
- Microsoft Office 12.0
- Microsoft Scripting Execution
- Microsoft VBScript 5.5 Regular Expressions
vba ms-access ms-access-2007
Jeff rosenberg
source share