Fix Microsoft Access Runtime Process Not Closing on Windows 11
Question details
The MSACCESS process fails to terminate completely and remains active in the Task Manager after closing a database application on Windows 11.

- Product
- Microsoft Access 2010 Runtime
- Device & OS
- Windows 11
- Scenario
- A user closes an Access 2010 Runtime application that contains VBA code or simple forms, expecting the background process to end.
- Observed behavior
- The application window closes properly, but the MSACCESS process continues running in the Task Manager. This prevents external applications that use WaitForSingleObject from proceeding, causing system hangs.
Ensure you have access to the original source database (.accdb or .mdb) to modify the VBA code before compiling and distributing the updated application to runtime users.
Replace DoCmd.Quit with Application.Quit in VBA
Modifying the termination command in the database's VBA code ensures the Access application completely closes its background process.
Earlier versions of Microsoft Access, including Access 2010 Runtime, sometimes experience issues where the process remains active after shutdown on newer operating systems like Windows 11. Changing the quit method in your code explicitly instructs the application object to terminate.
Launch the full version of Microsoft Access and open the source database file containing your forms and VBA code.
Open the form used to exit the application in Design View, right-click the exit button, and select 'Build Event' to view the associated VBA code.
Search the module for 'DoCmd.Quit' and replace it with 'Application.Quit'. Save the VBA module.
Compile the database and test it on a Windows 11 machine to verify that the MSACCESS process disappears from the Task Manager upon closing.

Isolate Forms and External Application Dependencies
Testing a blank database helps determine if external scripts or specific forms are preventing the process from terminating.
Experience a Seamless and Lightweight Office Alternative
While WPS Office does not offer a direct database alternative to Microsoft Access, it provides a powerful, free, and highly compatible suite for your Word, Excel, and PowerPoint documents. If you are experiencing persistent issues with legacy Microsoft Office software on modern operating systems like Windows 11, WPS Office offers a stable and lightweight modern workspace.

Frequently Asked Questions
Why does Access 2010 Runtime behave differently on Windows 11 compared to Windows 10?
Windows 11 introduces new process management and security protocols that can affect how legacy 32-bit and 64-bit applications, like Access 2010 Runtime, handle termination signals. This can cause commands like DoCmd.Quit to fail to terminate the background process completely.
Will clicking the 'X' button or 'File > Exit' properly close the MSACCESS process?
In some environments, clicking the 'X' or 'File > Exit' closes the graphical user interface but leaves the MSACCESS process running in the background. Adding a dedicated exit button programmed with 'Application.Quit' is a reliable workaround.
What does WaitForSingleObject do and why is it causing a hang?
WaitForSingleObject is a Windows API function used by external applications to pause their execution until a specific process (like MSACCESS) fully closes. If the Access process gets stuck in the Task Manager, the waiting application will hang indefinitely.




