Others

How to Create an Access Decompile Shortcut for Any Database

Steve KSteve K Oct 26, 2026 868 views

Question details

The user wants to set up a universal shortcut to launch Microsoft Access with the /decompile switch, allowing them to decompile any database file without creating individual shortcuts for each project.

How to Create a Universal Access Decompile Shortcut
Product
Microsoft Access
Device & OS
Windows
Scenario
A developer or user needs to frequently decompile various Microsoft Access databases to fix corruption, clear compiled VBA code, or reduce file sizes.
Observed behavior
Setting up a single, reusable decompile command that can be quickly applied to any selected database file via the context menu or drag-and-drop functionality.
Before you start

Ensure you create a backup copy of your Microsoft Access database before running the decompile command, as this process will strip all compiled VBA code and could cause data loss if interrupted.

Solution 1Recommended

Add an Access Decompile Shortcut to the SendTo Menu

This method allows you to right-click any Access database and quickly decompile it via the Windows 'Send to' context menu.

By placing a modified MSACCESS.EXE shortcut in the hidden Windows SendTo folder, you can universally apply the /decompile switch to any selected database file.

1
Locate MSACCESS.EXE

Open File Explorer and navigate to your Office installation folder (e.g., C:\Program Files\Microsoft Office\root\Office16\). Find MSACCESS.EXE, right-click it, and select 'Create shortcut' (place it on your desktop for now).

2
Add the Decompile Switch

Right-click the newly created shortcut and select 'Properties'. In the 'Shortcut' tab, locate the 'Target' field, add a space at the very end of the path, and type /decompile.

3
Open the SendTo Folder

Press Win + R on your keyboard to open the Run dialog. Type %AppData%\Microsoft\Windows\SendTo and press Enter to open the hidden SendTo directory.

4
Move and Rename the Shortcut

Drag your modified shortcut from the desktop into the SendTo folder. Rename the shortcut to something recognizable, like 'Access Decompile'.

5
Decompile Any Database

Right-click any Access database file (.accdb or .mdb), hover over 'Send to', and select your 'Access Decompile' shortcut to open the database in decompile mode.

Add an Access Decompile Shortcut to the SendTo Menu
Quick Universal Access: Once set up, this context menu option remains permanently available for all your Access databases.
Free Microsoft Office alternative

Looking for a Free, Lightweight Alternative to Microsoft Office?

While WPS Office does not feature a database management application like Microsoft Access, it is an exceptional, free alternative for your daily Word, Excel, and PowerPoint tasks. Enjoy a fast, lightweight suite with a familiar interface that handles your documents seamlessly.

  1. 1. Visit the Website: Go to the official WPS Office website to find the latest free version for your operating system.
  2. 2. Download the Installer: Click the 'Free Download' button to get the lightweight installation file.
  3. 3. Install and Launch: Run the installer, follow the simple on-screen instructions, and open WPS Office to manage your documents, spreadsheets, and presentations.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation that uses minimal system resources and runs smoothly on older devices.Familiar, intuitive tabbed interface designed for seamless migration from Microsoft Office.Built-in robust PDF reader and editor for comprehensive document management.
microsoft office alternative - wps office

Frequently Asked Questions

What exactly does the /decompile switch do in Microsoft Access?

The /decompile switch removes all compiled VBA (Visual Basic for Applications) code from the database, leaving only the raw source code. This helps resolve corruption issues, reduces bloat and file size, and forces Access to cleanly rebuild the code the next time you compile it.

Where can I find the MSACCESS.EXE file on my Windows computer?

The location depends on your specific Office version and installation type (32-bit vs. 64-bit). For Office 2016, 2019, and Microsoft 365, it is typically located in C:\Program Files\Microsoft Office\root\Office16\ or C:\Program Files (x86)\Microsoft Office\root\Office16\.

Do I need to recompile my database after using the decompile shortcut?

Yes. After opening your database with the decompile switch, you should open the VBA editor (Alt + F11), click 'Debug' from the top menu, and select 'Compile [Your Database Name]' to rebuild the code cleanly. Afterwards, save and compact the database.

Can I use the SendTo shortcut method in Windows 11?

Yes, the SendTo folder still functions perfectly in Windows 11. However, because Windows 11 uses a condensed right-click menu, you may need to click 'Show more options' (or press Shift + F10) when right-clicking the database file to see the 'Send to' option.