> ## Content Index
> Fetch the complete content index at: https://nolongerset.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Access Database Right-Click Context Menu Creator
- URL: https://nolongerset.com/explorer-context-menu/
- Published: 2022-07-26T03:59:00.000Z
- Updated: 2026-05-08T12:56:03.000Z
- Description: Wouldn't it be great to right-click an Access file to compact or decompile it? With Daniel Pineault's awesome tool, you can!
- Author: Mike Wolfe
- Tags: Tools, #Import 2026-05-20 02:59

A common Microsoft Access troubleshooting technique is to use the undocumented `/decompile` command-line switch.

This will remove the compiled byte code from an Access application, forcing Access to recreate the byte code from the original VBA source code. This approach fixes a specific type of corruption where the compiled byte code and the original VBA source code get out of sync. From experience, those types of errors (though rare) seem to get introduced when using the Edit and Continue feature of VBA, especially when editing code-behind on forms and reports.

The problem with this technique is that it traditionally requires you to actually open a `cmd` window, type out the full path to `msaccess.exe`, then type out the full path to your `.accdb` file, and finally, include the `/decompile` switch.

## A Simpler Way

Access MVP Daniel Pineault wrote a tool in Access to add the decompile switch (and other common Access commands) to the Explorer context (a.k.a., right-click) menu.

Here's the end result:

![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/07/image-27.png)

The above menu appears when right-clicking an .accdb file after running Daniel's tool.

You can download the tool from Daniel's site: [Windows Explorer MS Access Database Right-Click Context Menu](https://www.devhut.net/windows-explorer-ms-access-database-right-click-context-menu/).

## Pulling Back the Curtain

So, what does the tool actually do?

It's an .accdb, so you can look behind the scenes yourself if you would like (just hold down the Shift key when opening the file). In fact, Daniel explicitly allows/encourages this in the [comments section](https://www.devhut.net/windows-explorer-ms-access-database-right-click-context-menu/#comment-2213):

> Since the database is unlocked, feel free to develop \[additional\] features and I’ll be more than happy to update the sample and give credit where credit is due!

But, to save you that trouble, I'll provide a brief overview:

1. For each selected extension (\*.accdb, \*.accde, etc.), look up the application class name in `HKCR\.accd*`
2. Add an entry for each app class name to `HKCU\SOFTWARE\Classes\`
3. Create a `shell\CARDA Database Tools\shell` entry under the app class name
4. For each selected command (/decompile, /compact, etc.), create a `Decompile\command` entry
5. In the `command` entry, set a (Default) value of `msaccess.exe %1% /decompile`

Here are some associated screenshots:

![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/07/image-29.png)

The application class name associated with the `.accda` file extension on my machine is "**Access.ACCDAExtension.16**". The class name is version-dependent, so may be different on your device.

![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/07/image-30.png)

All of the entries in the red box above were created by Daniel's tool.

## Removing the Items from the Context Menu

In the comments, someone asked how to remove items from the context menu.

Daniel's tool does not automate the process, but as he states in his response, it's very straightforward. You just have to know *which* registry entries to delete. 😉

[![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/07/image-31.png)](https://www.devhut.net/windows-explorer-ms-access-database-right-click-context-menu/#comment-1358)

Spoiler alert: As of July 25, 2022, that feature has not yet been added...

To save you the hassle of figuring this out for yourself, I did a bit of legwork. 

To completely remove the context menu items, you just need to delete the registry entries highlighted in the red box below. They are all found under the `HKCU\SOFTWARE\Classes\` registry key. Once again, your registry items may be slightly different than the ones shown below due to differences in Access versions.

![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/07/image-33.png)

I was initially nervous about deleting the above registry keys, so I checked on a different computer that had Access installed where I had not run Daniel's tool. Those keys did not exist at all, so I felt comfortable deleting them on my current computer.

![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/07/image-34.png)

A look at the registry on a different computer with Access installed but where I never ran Daniel's tool. The `Access.*` entries in the `HKCU\SOFTWARE\Classes\` key are obviously not required, as this device has worked properly for years.

*Tip o' the hat to Colin Riddington for highlighting Daniel's tool in one of his recent articles, [Access Command Line Switches](https://isladogs.co.uk/command-line-switches/index.html).*

### External references

[Windows Explorer MS Access Database Right-Click Context MenuMS Access utility demo database which creates a Windows Explorer context menu for MS Access files to directly compact, decompile, exclusive and/or runtime.Daniel Pineault](https://www.devhut.net/windows-explorer-ms-access-database-right-click-context-menu/)

[Access Command Line SwitchesThis article lists the command-line switch options available for Microsoft Access.![](https://isladogs.co.uk/images/favicon.png)Isladogs on AccessColin Riddington![](https://isladogs.co.uk/img/logoOG.png)](https://isladogs.co.uk/command-line-switches/index.html)