Access 2016: Make an Executable Database
You can save an Access database as an executable-only file to enhance security and improve performance. This prevents users from modifying the database design, while still providing the functionality required by most users.
If you plan to distribute your Access database to users, consider saving it as an executable-only file.
An executable file (or a compiled binary file) is a database application file that has been saved with all the Visual Basic Access (VBA) code compiled. An Access compiled binary file is saved with an .accde extension (as opposed to the .accdb extension of the regular Access database).
An Access compiled binary file contains no VBA source code. Users cannot change the design of objects such as forms, reports, and macros in an .accde file.
A normal Access database (i.e. a non-compiled database), on the other hand, allows users to modify these objects and change the VBA source code.
Save a Database as an Executable-only File
We'll now save the Music database that we've created throughout this tutorial as an executable-only file in .accde format.
You should split your database before saving it as an executable-only file. This will allow you to distribute the front-end to users, while having a central back-end that stores the data.
Test the Executable
Now that the ACCDE file has been saved, open it as a user would, and try to modify a form, report, or macro.
Remove the Security Warning
If users receive the security warning as seen in the above screenshot, it is probably because the executable database file is being opened from a non-trusted location.
Users can simply click Open to open the file. But they will need to do this every time they open the file.
An alternative is to remove the security warning altogether.
If this warning is due to the file being opened from a non-trusted location, the user will need to add the location to their trusted locations in the Access Options.
Here's how to do that.
A Word of Caution about Trusted Locations
Users should be careful about which locations are added as a trusted location. Rather than setting the whole Documents folder as a trusted location, it would be better to have a sub-folder or another dedicated folder, just for (trusted) Access databases.
Folders like the Documents folder tend to be the default location for files. So it could end up with hundreds of files from many disparate sources — including files downloaded from the Internet. So, setting a folder like this to be a trusted location carries a significantly higher risk than setting a smaller, sub-folder as a trusted location.
Microsoft Access Runtime
Generally, when you distribute an Access database, each user will need their own copy of Access.
However, if they don't have Access, you can package and distribute your application with Access 2016 Runtime.
Microsoft Access 2016 Runtime is a free download that enables users to open and work with Access databases. As long as no customization is required on reports etc, then they can use Access Runtime instead of the full Access application. And if you're distributing the executable file, then they wouldn't be able to customize it anyway.
You can download Microsoft Access 2016 Runtime from the Microsoft website.