Others

How to Fix Access Switchboard Options and VBA Functions Not Working

Muhammad TalhaMuhammad Talha Oct 28, 2026 868 views

Question details

The user needs to troubleshoot Microsoft Access switchboard buttons that fail to execute VBA procedures, macros, or queries properly without displaying error messages.

How to Fix Access Switchboard Options and VBA Functions Not Working
Product
Microsoft Access
Device & OS
not provided
Scenario
Attempting to run legacy switchboard commands in an inherited Access database stored on a portable drive, but the commands move wrong records or do nothing.
Observed behavior
Switchboard buttons fail silently without triggering error messages, resulting in incorrect data manipulation or no action at all.
Before you start

Before making any modifications to VBA code or query structures, securely back up your entire Access database file to a local drive to prevent accidental data loss during testing.

Solution 1Recommended

Verify Database Trusted Locations in Access

Ensure that the portable drive or folder hosting your Access database is marked as a trusted location, which is required to allow VBA macros and procedures to run safely.

Microsoft Access often disables VBA code silently if the database is opened from an untrusted location like a portable drive. Adding the drive to the Trust Center will unblock these functions.

1
Open the Trust Center Settings

Launch Microsoft Access, click on the 'File' tab in the top left corner, and select 'Options'. In the Access Options dialog box, click 'Trust Center' on the left pane, then click the 'Trust Center Settings' button.

2
Navigate to Trusted Locations

Select 'Trusted Locations' from the left menu of the Trust Center window. Here you will see a list of folders that Access currently trusts.

3
Add Your Portable Drive

Click 'Add new location' at the bottom of the window. Browse to the specific folder on your portable drive where the database is stored. Check the box for 'Subfolders of this location are also trusted' if necessary, and click 'OK' to save.

Verify Database Trusted Locations in Access
Security Check: Once the location is trusted, you will not have to repeatedly click 'Enable Content' when opening the database, and background VBA commands will execute normally.
Free Microsoft Office alternative

Switch to WPS Office for Seamless Document Management

While WPS Office does not include a direct replacement for complex Microsoft Access databases, it serves as a highly efficient, lightweight, and entirely free alternative for your Word, Excel, and PowerPoint files. Experience seamless format compatibility and a user-friendly interface.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight and fast, running smoothly on virtually any device or operating system.Familiar, tabbed user interface makes transitioning from Microsoft Office effortless and intuitive.Includes a built-in PDF toolkit for viewing, editing, and converting documents.
microsoft office alternative - wps office

Frequently Asked Questions

Why do Access switchboard buttons fail without giving an error message?

This commonly occurs if the database is running from an untrusted location, which silently disables VBA macros for security reasons. It can also happen if the VBA script contains error-handling commands like 'On Error Resume Next', which suppresses alerts.

How do I find out what VBA is doing behind an Access button?

Open your database in Design View, select the specific button, and press F4 to open the Property Sheet. Go to the 'Event' tab and click the ellipsis (...) next to the 'On Click' event to view the exact VBA code or macro associated with it.

Can I run an Access database from a portable USB drive?

Yes, but you must manually add the portable drive's specific path to the Trusted Locations in the Access Trust Center (File > Options > Trust Center) on the host computer. Otherwise, security protocols will block macros and VBA functions from executing.

How do I compare code between an older working Access database and a broken one?

Open both databases simultaneously if your system allows, or open them one after the other. Press Alt+F11 to open the VBA editors, locate the specific form module in the Project Explorer, and visually compare the VBA scripts side-by-side to find discrepancies.