Files Created in Microsoft Access 2007 SP1 Do Not Run Under the Original Access 2007 Version

by Luke Chung, President of FMS, Inc.

You create a Microsoft Access 2007 database (.accde, or .mde or .ade) file to give to your users. It runs fine on your machine and for several other users, but some people get this error dialog as soon as they run it:

VBA project in database is corrupt

For the life of you, you can't figure out why. The message says the VBA project is corrupt, but the same file runs fine on other machines. And since it's an MDE/ACCDE/ADE file, the user can't modify it making it doubly confusing how they could have corrupted it.

In fact, it has nothing to do with VBA or database corruption. Your database is fine. It just won't run on that machine.

In January 2008, Microsoft released hotfix service patch SP1 for Microsoft Office 2007. This included SP1 for Microsoft Access 2007 and fixed a variety of issues.

Unfortunately, a side effect of this new version is a break of backward compatibility of MDE, ACCDE, and ADE files created under SP1. Patches in prior versions of Access never broke backward compatibility within their own version, so this is a new challenge for Access developers.

.MDE, .ACCDE, and .ADE files are created from *.MDB, *.ACCDB and *.ADP database formats respectively. These files allow developers to create databases for users while preventing users from modifying form and report designs and module code. It's also a smaller file.

For example, an ACCDE file is built in Access 2007 by opening an ACCDB file and choosing the Make ACCDE item from the Database Tools ribbon:

Microsoft Access 2007 Make ACCDE Database Tools Ribbon

You can tell if you have SP1 installed by selecting Access Option from the Office button on the far left, and selecting "Resources" on the left border menu. In the About section at the bottom, the version number is listed as 12.0.6211.1000.

The original shipping version of Microsoft Office Access 2007 is 12.0.4518.1014.

Programmatically, within your database, you can run this code to determine the current build of Access 2007:

Application.Build()

This returns 4518 for the original version and 6211 for SP1. The Application.Version() command tells you the Access version (12.0).

Of course, the programmatic feature doesn't help if your database won't even start.

There are a few ways to solve this problem:

  1. Make sure all your users are upgraded to the SP1 version of Access 2007.

  2. If you can't control the Access 2007 version your users are running, you need to create your MDE/ACCDE/ADE file in the original Access 2007 version. They will run fine under SP1. The hassle is that you'll need to keep a separate machine with the original version of Access 2007 and not allow it to receive automatic updates from Microsoft.

Hope this helps. Good luck!

Table Design

Query Design

Form Design

Form Tips and Mistakes

Copy Command Button and Keep Picture

Module VBA to Forms and Controls

Form Navigation Caption

Resync Record in a Subform

Synchronize Two Subforms

Multiple OpenArgs Values

Late Bind Tab Subforms

Subform Reference to Control Rather than Field

Tab Page Reference

Shortcut Keys


Combo Box Top 6 Tips

Properties and Validation

Select First Item

Cascading Combo Boxes

Zip, City, State AutoFill

Report Design

Suppress Page Headers and Footers on the First Page of Your Report

Add the NoData Event

Annual Monthly Crosstab Columns

Design Environment

Add Buttons to the Quick Access Toolbar

Collapse the Office Ribbon for more space

VBA Programming

Basics: Forms and Controls

Run VBA Code from a Macro

Use Nz() to Handle Nulls

Avoid Exits in the Body of a Procedure

Shortcut Debugging Keys

Set Module Options

Math Rounding Issues

Rename a File or Folder

Avoid DoEvents in Loops

Age Calculations

Weekday Math

Send Emails with DoCmd.SendObject

Source Code Library

Microsoft Access Modules Library

Microsoft Access Modules

VBA Error Handling

Error Handling and Debugging Techniques

Error Number and Description Reference

Basic Error Handling

Pinpointing the Error Line

Performance Tips

Linked Database

Subdatasheet Name

Visual SourceSafe

Deployment

Runtime Downloads

Simulate Runtime

Prevent Close Box

Disable Design Changes

Broken References

Remote Desktop Connection Setup

Terminal Services and RemoteApp Deployment

Reboot Remote Desktop

Missing Package & Deployment Wizard

Avoid Program Files Folder

Unavailable Mapped Drives

Microsoft Access Front-End Deployment

System Admin

Disaster Recovery Plan

Compact Database

Compact on Close

Database Corruption

Remove 'Save to SharePoint Site' Prompt from an Access Database

Class Not Registered Run-time Error -2147221164

Inconsistent Compile Error

Decompile Database

Bad DLL Calling Convention

Error 3045: Could Not Use

Converting ACCDB to MDB

SQL Server Upsizing

Microsoft Access to SQL Server Upsizing Center

Microsoft Access to SQL Server Upsizing Center

When and How to Upsize Access to SQL Server

SQL Server Express Versions and Downloads

Cloud and Azure

Cloud Implications

MS Access and SQL Azure

Deploying MS Access Linked to SQL Azure

SQL Server Azure Usage and DTU Limits

Visual Studio LightSwitch

LightSwitch Introduction

Comparison Matrix

Additional Resources

Connect with Us

 

Free Product Catalog from FMS