Office Apps Freezing

How to Prevent Microsoft Access from Hanging on Captive Portal Wi-Fi

Phi Hung VoPhi Hung Vo Oct 22, 2026 868 views

Question details

The user needs a way to stop their Microsoft Access database from freezing when connecting to public Wi-Fi networks that require captive portal authentication.

How to Prevent Microsoft Access from Hanging on Captive Portal Wi-Fi
Product
Microsoft Access
Device & OS
not provided
Scenario
Opening an Access database with linked SharePoint tables on a public Wi-Fi network before authenticating through the browser-based captive portal.
Observed behavior
The database becomes completely unresponsive while attempting to update linked tables, hanging indefinitely before any safe-mode or error messages can appear.
Before you start

Before modifying your database startup sequence, ensure you have backed up your Access database file and have the necessary administrative rights to create or edit AutoExec macros.

Solution 1Recommended

Use an AutoExec Macro to Test Network Connectivity First

Creating an AutoExec macro allows you to verify if the required network connection is fully established before Access attempts to load any linked SharePoint tables or bound forms.

An AutoExec macro runs immediately upon opening the database. By placing your network check here, you prevent the application from attempting to fetch data over an unresolved captive portal connection, which is the root cause of the freezing.

1
Bypass current startup settings

Hold down the 'Shift' key while double-clicking your Access database file to open it. This bypasses any existing startup forms or macros so you can edit the database.

2
Create a new macro

Navigate to the 'Create' tab on the Access ribbon and click on 'Macro' in the Macros & Code group.

3
Add a connection test action

Use the 'RunCode' action to call a custom VBA function that pings a reliable server or checks for access to a specific network resource. Alternatively, use macro conditions to test local vs. network availability.

4
Configure conditional form loading

Add an 'If' block in the macro. If the connection test returns a success status, use the 'OpenForm' action to load your main startup form. If it fails, open a local 'Safe Mode' form or display a message box prompting the user to log into the Wi-Fi.

5
Save as AutoExec

Click 'Save' and name the macro exactly 'AutoExec'. Close the database and reopen it normally to test the new startup sequence.

Use an AutoExec Macro to Test Network Connectivity First
Preventing premature loading: By testing the connection before any objects are loaded, you effectively stop Access from locking up while it waits for a blocked SharePoint response.
Free Microsoft Office alternative

Looking for a reliable, lightweight alternative to Microsoft Office?

While WPS Office does not include a direct database equivalent to Microsoft Access, it is a highly capable, free alternative for handling Word documents, Excel spreadsheets, and PowerPoint presentations. If you are experiencing frequent freezing and stability issues with heavy Office applications on public networks, WPS Office provides seamless offline functionality and exceptional performance.

  1. 1. Download the software: Visit the official WPS Office website and download the free installation package tailored for your operating system.
  2. 2. Install WPS Office: Run the installer and follow the simple on-screen instructions to set up the lightweight office suite on your computer.
  3. 3. Open your files instantly: Launch WPS Office and directly open your existing Word, Excel, and PowerPoint files without worrying about complex network sync freezes.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Lightweight application architecture that runs smoothly even on older devices or when dealing with unstable public Wi-Fi networks.Built-in PDF editing tools seamlessly combined with traditional office apps in a single intuitive interface.Free to use with a familiar ribbon layout, meaning zero learning curve if you are migrating from Microsoft Office.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Access freeze when connected to a captive portal Wi-Fi?

When connecting to a captive portal Wi-Fi network, your computer appears connected to a router, but external internet access is intercepted until you log in via a browser. Microsoft Access attempts to connect to linked SharePoint tables, but instead of cleanly failing, it receives irregular intercepted responses from the captive portal. This causes the application to hang while waiting for a timeout.

What is an AutoExec macro in Microsoft Access?

An AutoExec macro is a specifically named macro in Microsoft Access that executes automatically the moment the database file is opened. It is widely used by developers to set application variables, check security permissions, or verify network connections before the user can interact with any forms or data.

Can I bypass the AutoExec macro if I need to edit the database offline?

Yes. You can bypass the AutoExec macro and all other startup behaviors by pressing and holding the 'Shift' key while opening the Access database. This grants you direct access to the Navigation Pane and Design Views so you can troubleshoot or edit your forms and macros.

Will checking the connection in the Form Load event work just as well?

Usually, no. If the form is bound to a linked table, Access will attempt to connect to the data source before the Form Load event finishes executing. This means the application will likely freeze before your VBA code has a chance to determine that the network is blocked by a captive portal.