Forum Discussion

Jlorbz's avatar
Jlorbz
Tin Contributor
Jul 22, 2026

Msgbox or Modal window Crash on PC Sleep

This has been an issue for a couple of years, but I haven't spent too much time trying to solve it because I thought it would eventually go away. It hasn't and it is becoming worse as I develop other parts of my application.

Situation: When a msgbox (or modal window) is open and the PC sleeps, the application hangs upon PC awake. There's no way to get out it with ending the process.

To replicate:

  1. Create and save blank database
  2. Create one module with a single public test function
  3. Enter msgbox "Hang Test", vbOkOnly
  4. Hit F5 to run the code. The message box pops up. Leave it.
  5. Put PC to sleep manually with windows | power | sleep
  6. Awaken PC, Access is now frozen.

GPT provides a lot of explanations for this behavior, but it doesn't make sense and must be something that can be addressed. 

Windows 11, Version 2606 (Build 20131.20126 Click-to-Run)

 

No RepliesBe the first to reply