Solved

MS Access 2007: Crashes on CurrentProject.Connection after MS Project 2010 Install

Posted on 2011-09-26
3
1,337 Views
Last Modified: 2013-11-27
We have Office 2007 Installed and a sizable database with many VBA references to the CurrentProject.Connection method.

After installing an Office 2010 application such as Project or Visio, the Access 12.0 reference is replaced by the Access 14.0 reference.  At this point, our Access 2007 database crashes without an error code everytime the code reaches a CurrentProject.Connection command.

I have tried decompiling, recompiling, and compact and repair to no avail.  I am also afraid this will be a problem when we start updating individual clients to Access 2010.  Our database needs to be able to run in a mixed environment.  What needs to be done, and what is the easiest solution to implement?  Is there a different reference that is needed for the Access 14.0 library?

Thanks!
0
Comment
Question by:VoodooFrog
3 Comments
 
LVL 12

Expert Comment

by:pdebaets
ID: 36600715
Try closing the Office 2010 applications, then open your Access 2007 database. You should see Microsoft Office go through its configuration process, then your Access database will open. You should see that there is an Access 12.0 reference in the database.

I have multiple office versions running on my computer (from 97 through 2010). The key is to not mix office configurations at runtime. Once office goes through the Office 2007 configuration, only open Office 2007 documents. When you have to open an Office 2010 document, close all the 2007 documents first, then open the Office 2010 document and wait for the configuration process to complete. Then, only open Office 2010 documents until you need to open a doc from another Office version. etc...
0
 

Author Comment

by:VoodooFrog
ID: 36600823
First, this problem occurs with all 2010 applications closed.  Second, what you are describing sounds more along the lines of running an installation repair every time you want to switch between versions of Office applications.

Regardless of any of that, we need the database to work no matter what version of office the client is running.  We will not likely have Access 2007 and Access 2010 installed on the same computer as you describe. It will be one or the other, and managing two different versions of the same database is not a solution either. Users having to wait for an application to configure/repair itself to open different versions of documents will not be acceptable either.
0
 
LVL 16

Accepted Solution

by:
Chuck Wood earned 500 total points
ID: 37034510
i found this explanation and "solution" at http://answers.microsoft.com/en-us/office/forum/office_2007-access/ms-office-stopping-ms-access/70662303-6177-4186-9b31-aa1db308bcec 

When you install Project 2010, it also installs and registers a newer version of the Access Database Engine (Ace 14.0). This causes a problem with Access 2007 because it needs to use Ace 12.0 in order to work correctly. When you look at your references within the Access database when the problem happens, does it have any references to 14.0 files? If so, the only method I have found to get this to work, if you are going to have different versions of Office application on the same machine, is to repair Access 2007 before you use it. Doing so should force it to reregister the proper 12.0 Office and Ace library files. This will then be fine until you launch Project again.  The unfortunate thing is that when you launch Project again, it most likely will reconfigure, which will then reregister the 14.0 files again, thus you will then have to repair Access before you use it again. DLL problems like this are one of the reasons why it is not recommended to install multiple versions of Office on the same machine. I hope that helps in providing you with an explanation of why you were seeing this behavior.

 Best Regards,
Nathan Ost
Microsoft Online Community Support
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question