A 32-bit .accde or .mde cannot be directly converted or opened in 64-bit Access; obtain its original editable .accdb or .mdb database and recreate the compiled file using 64-bit Access.^1^
If the original source database is available
- Locate the corresponding editable source:
-
.accde requires the original .accdb.
-
.mde requires the original .mdb.
- Make a backup of that source database.
- Open the source in 64-bit Access, not the compiled
.accde or .mde.
- Compile and test the database in 64-bit Access.
- Recreate the
.accde or .mde from that source using the same Access/Office version deployed to its users. Microsoft recommends recreating compiled files with the version of Office used by the target users.^2^
- Place the newly generated 64-bit compiled file on the file server and test it from a 64-bit Access workstation.
The original source is essential because an ACCDE/MDE has already had its VBA source compiled and removed. Renaming the file, changing its extension, or copying it to another location will not change its bitness. The exact error shown is the expected result when a 32-bit compiled Access file is opened with 64-bit Access.^3^
If compilation exposes compatibility problems
Only apply these changes to the editable .accdb or .mdb source:
- Update Windows API
Declare statements with PtrSafe.
- Use
LongPtr for pointers and window handles rather than Long.
- Replace 32-bit ActiveX controls or COM add-ins with 64-bit-compatible versions.
Microsoft documents that native 64-bit Office processes cannot load 32-bit binaries and that existing API declarations may require PtrSafe and pointer-safe data types.^4^
A typical dual-bitness declaration uses conditional compilation:
#If VBA7 Then
Private Declare PtrSafe Sub MessageBeep Lib "user32" _
(ByVal uType As Long)
#Else
Private Declare Sub MessageBeep Lib "user32" _
(ByVal uType As Long)
#End If
The declarations must be reviewed individually; adding PtrSafe alone does not correct parameters that represent pointers or handles.
If only the ACCDE/MDE exists
There is no supported direct conversion path. The practical choices are:
- Request the original
.accdb or .mdb from the database developer or previous maintainer.
- Ask that developer to produce a 64-bit build.
- Continue running the existing file with 32-bit Access.
Microsoft explicitly lists compatibility with 32-bit Access .mde, .ade, and .accde files as a reason to use 32-bit Office.^1^ If changing the installed Office bitness, uninstall 64-bit Microsoft 365 before installing its 32-bit edition; the two bitnesses cannot normally be installed side by side.
The fact that Windows and the file server are 64-bit is not the determining factor—the required match is between the compiled database and the installed Access application.
References
- Newer versions
- Error when trying to open an ACCDE/MDE file created in a different version of Access | Microsoft Support
- I have a 64 bit system and I have a 32 bit .MDE database that I want to read. It won't open. - Microsoft Q&A
- Compatibility between the 32-bit and 64-bit versions of Office