How to Make an Access Database Look Like a Standalone App
Question details
The user wants to hide the Microsoft Access interface and taskbar button, ensuring only a specific pop-up form is visible and stays in front of other desktop windows.
- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Developing an Access database and wanting to distribute it with a clean, standalone application-like user interface.
- Observed behavior
- By default, Access displays its full application window, ribbon, and taskbar icon, which distracts from the custom database form.
Ensure you create a backup of your Access database before modifying startup settings and running Windows API code. It is highly recommended to keep the Shift bypass key enabled during development so you do not lock yourself out of the design view.
Hide the Access Application Window using Windows API
Use VBA and the Windows ShowWindow API to hide the main Access window and taskbar icon while keeping your forms visible.
To make the database operate seamlessly like an independent software program, you can instruct Windows to hide the parent Access application window entirely. This is achieved by utilizing the user32 library's ShowWindow function.
Open the VBA editor, insert a standard module, and declare the ShowWindow function: Private Declare PtrSafe Function ShowWindow Lib "user32" (ByVal hwnd As LongPtr, ByVal nCmdShow As Long) As Long. Then define the constants SW_HIDE = 0 and SW_SHOW = 5.
Create a public sub named ToggleAccessWindow(Optional ByVal Show As Boolean = False). Inside, use Application.hWndAccessApp to get the window handle, and call ShowWindow with SW_HIDE if Show is False.
Open your main form in Design View, open the Property Sheet, and set both the "Pop Up" and "Modal" properties to "Yes". This prevents the form from being hidden alongside the main application.
In the form's "On Open" event, add the VBA code: ToggleAccessWindow False to hide the background application window as soon as the form loads.
Hide the Access Ribbon, Navigation Pane, and Status Bar
If you prefer not to use Windows APIs, you can natively hide the built-in Access UI elements to simulate a standalone application.
Need a Lightweight, Fast Alternative for Your Office Tasks?
While Microsoft Access handles complex desktop databases, WPS Office is the perfect free alternative for your daily document, spreadsheet, and presentation needs. It is fully compatible with Microsoft Office file formats and offers a sleek, tabbed interface.

Frequently Asked Questions
How do I access my database if I accidentally hide the application window permanently?
Hold down the Shift key while double-clicking the database file to open it. This bypasses the startup settings and auto-executing macros, allowing you to view the normal application window, access the design view, and edit your code.
Why is my form disappearing when I hide the Access window?
If your form's "Pop Up" property is not set to "Yes", it is treated as a child window of the main Access application. When the parent application is hidden via the Windows API, the child form is automatically hidden as well.
Can I completely remove the Access icon from the Windows taskbar?
Hiding the main Access window using the ShowWindow API will remove the primary application icon from the taskbar. However, your pop-up form will still have its own taskbar presence unless specifically styled as a tool window using more advanced API calls.
What is the difference between ACCDB and ACCDE formats?
An ACCDB is the standard Access database format containing all editable source code and design views. An ACCDE is a compiled executable version where VBA code is unreadable and form/report designs cannot be altered, making it safer and more professional for end-user distribution.




