Turn sandbox mode on or off to disable macros (2024)

This article explains how to use an Access security feature called sandbox mode. In sandbox mode, Access blocks “unsafe” expressions: any expression that uses functions or properties that could be exploited by malicious users to gain access to drives, files, or other resources for which they do not have authorization. For example, functions such as Kill and Shell could be used to damage data and files on a computer, so they are blocked in sandbox mode.

Note:This topic does not apply to Access web apps or Access web databases, and does not cover other Access security features.

In this article

  • Overview

  • Disable sandbox mode (run unsafe expressions)

Overview

Sandbox mode is a security feature that prevents Access from running certain expressions that could be unsafe. These unsafe expressions are blocked regardless of whether the database has been ‘trusted’ – its content enabled.

How sandbox mode is set

You use a registry key to specify whether Access should run in sandbox mode. Sandbox mode is enabled by default – the registry key value is set to enable sandbox mode when Access is installed on a computer. If you want to allow all expressions to run, you can change the registry key value to disable sandbox mode.

Trusted databases

Regardless of whether sandbox mode is enabled in the registry, Access won’t allow potentially unsafe expressions to run unless the database file either is located in a trusted location, or bears a valid trust signature. If a database isn’t “trusted” Access uses sandbox mode.

The following drawing shows the decision process that Access follows when it encounters an unsafe expression.

Turn sandbox mode on or off to disable macros (1)

If you are not familiar with the registry, or you are not comfortable with changing registry keys yourself, ask for help from someone who is familiar and comfortable with changing the registry. You must have administrator permissions on the computer to change the registry values.

Top of Page

Disable sandbox mode (run unsafe expressions)

In some installations, you can disable sandbox mode by changing the value of a registry key.

Note:Not all installations of Access will include the SandBoxMode registry key referred to in the procedure below. If you do not find the registry key, we do not recommend adding it, as it could interfere with Office updates.

Caution Incorrectly editing the registry may severely damage your operating system, requiring you to reinstall it. Microsoft cannot guarantee that problems resulting from editing the registry incorrectly can be resolved. Before editing the registry, back up any valuable data. For the most recent information about using and protecting your computer's registry, see Microsoft Windows Help.

Change the registry key

Important:Following these steps allows unsafe expressions to run in all instances of Access for all users on the computer.

  1. Close all instances of Access that are running on the computer for which you want to disable sandbox mode.

  2. Press the Windows key, type Run, and press ENTER.

  3. In the Open box, type regedit and then press ENTER.

    The Registry Editor starts.

  4. The specific location of the registry key will vary depending upon what version of Access you are running, the bitness (32 bit or 64 bit) of your Windows and Access version, and if you have a click-to-run installation. If you're having trouble finding the right registry key from the possible options displayed below, try searching the registry for Access Connectivity Engine.

    Expand the HKEY_LOCAL_MACHINE folder and navigate to the following registry key:

    If you're using Access 2016 or Access 2019, try looking here: \Software\Microsoft\Office\16.0\Access Connectivity Engine\Engines or here: \Software\WOW6432Node\Microsoft\Office\16.0\Access Connectivity Engine\Engines

    If you're using the 32 bit Microsoft 365 subscription version of Access or a 32 bit click-to run installation of Access try looking here: Software\Microsoft\Office\ClickToRun\Registry\Machine\Software\Microsoft\Office\16.0\Access Connectivity Engine\Engines

    ...or here:

    Software\Microsoft\Office\ClickToRun\Registry\Machine\Software\Microsoft\Office\15.0\Access Connectivity Engine\Engines

    If you're using the 64 bit Microsoft 365 subscription version of Access or a 64 bit click-to run installation of Access try looking here: Software\Microsoft\Office\ClickToRun\Registry\Machine\Software\Wow6432Node\Microsoft\Office\16.0\Access Connectivity Engine\Engines

    ...or here:

    Software\Microsoft\Office\ClickToRun\Registry\Machine\Software\Wow6432Node\Microsoft\Office\15.0\Access Connectivity Engine\Engines

  5. In the right pane of the registry editor, under Name, double-click SandBoxMode if it is present. If you don’t find the SandBoxMode registry key, we do not recommend adding it, as it could interfere with Office updates.

    The Edit DWORD Value dialog box appears.

  6. In the Value Data field, change the value from 3 to 2, and then click OK.

  7. Close the Registry Editor.

Important:Remember that if you do not first enable the content in the database, Access disables any unsafe expressions regardless of whether you change this registry setting.

You can set the registry value to the following values, with 0 (zero) being the most permissive and 3 being the least permissive.

Setting

Description

Sandbox mode is disabled at all times.

1

Sandbox mode is used for Access, but not for non-Access programs.

2

Sandbox mode is used for non-Access programs, but not for Access.

3

Sandbox mode is used at all times. This is the default value, set when you install Access.

Top of Page

Turn sandbox mode on or off to disable macros (2024)
Top Articles
Lisa Marie Presley’s Posthumous Memoir Is Due Out This October
Can You Pay Off Student Loans in One Lump Sum? - NerdWallet
Is Paige Vanzant Related To Ronnie Van Zant
Jennifer Hart Facebook
El Paso Pet Craigslist
San Diego Terminal 2 Parking Promo Code
Toyota gebraucht kaufen in tacoma_ - AutoScout24
Chuckwagon racing 101: why it's OK to ask what a wheeler is | CBC News
King Fields Mortuary
Produzione mondiale di vino
Luciipurrrr_
Knaben Pirate Download
Nioh 2: Divine Gear [Hands-on Experience]
Craigslist Deming
All Buttons In Blox Fruits
Skyward Login Jennings County
Praew Phat
Roof Top Snipers Unblocked
SF bay area cars & trucks "chevrolet 50" - craigslist
Full Standard Operating Guideline Manual | Springfield, MO
Panic! At The Disco - Spotify Top Songs
Ford F-350 Models Trim Levels and Packages
Who is Jenny Popach? Everything to Know About The Girl Who Allegedly Broke Into the Hype House With Her Mom
Ceramic tiles vs vitrified tiles: Which one should you choose? - Building And Interiors
Toothio Login
Nesb Routing Number
Airtable Concatenate
Sherburne Refuge Bulldogs
Wonder Film Wiki
How To Improve Your Pilates C-Curve
What are the 7 Types of Communication with Examples
Renfield Showtimes Near Marquee Cinemas - Wakefield 12
Rlcraft Toolbelt
Sun-Tattler from Hollywood, Florida
Golden Tickets
Kaiju Paradise Crafting Recipes
Litter-Robot 3 Pinch Contact & DFI Kit
Craigslist Red Wing Mn
Free Robux Without Downloading Apps
How to Destroy Rule 34
Otter Bustr
Satucket Lectionary
All Weapon Perks and Status Effects - Conan Exiles | Game...
How To Customise Mii QR Codes in Tomodachi Life?
Tlc Africa Deaths 2021
Spreading Unverified Info Crossword Clue
This Doctor Was Vilified After Contracting Ebola. Now He Sees History Repeating Itself With Coronavirus
Frequently Asked Questions
Richard Mccroskey Crime Scene Photos
116 Cubic Inches To Cc
Deviantart Rwby
Southwind Village, Southend Village, Southwood Village, Supervision Of Alcohol Sales In Church And Village Halls
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 5910

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.