logo
search
Others

How to Make an Access Database Look Like a Standalone App

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Add the Windows API code to a module

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.

2
Create the toggle function

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.

3
Configure the form properties

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.

4
Trigger the hide function on form load

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.

Form Positioning: You may need to use additional Windows APIs like SetWindowPos to force the pop-up form to stay on top of other desktop windows if it occasionally falls behind.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Word, Excel, and PowerPoint files.Lightweight installation that uses minimal system resources.All-in-one tabbed interface for Writer, Spreadsheet, Presentation, and PDF.Built-in PDF editing and conversion tools.
microsoft office alternative - wps office

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.