How to Create an Access Decompile Shortcut for Any Database
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.

- 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.
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.
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.
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).
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.
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.
Drag your modified shortcut from the desktop into the SendTo folder. Rename the shortcut to something recognizable, like 'Access Decompile'.
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.

Create a Universal Drag-and-Drop Shortcut
Create a shortcut on your desktop where you can easily drag and drop any database file to launch it in decompile mode.
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. Visit the Website: Go to the official WPS Office website to find the latest free version for your operating system.
- 2. Download the Installer: Click the 'Free Download' button to get the lightweight installation file.
- 3. Install and Launch: Run the installer, follow the simple on-screen instructions, and open WPS Office to manage your documents, spreadsheets, and presentations.

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.




