<form id="hbx9t"></form>

<noframes id="hbx9t">

    <em id="hbx9t"><span id="hbx9t"></span></em>

        <noframes id="hbx9t"><address id="hbx9t"><th id="hbx9t"><progress id="hbx9t"></progress></th></address>
        office交流網--QQ交流群號

        Access培訓群:792054000         Excel免費交流群群:686050929          Outlook交流群:221378704    

        Word交流群:218156588             PPT交流群:324131555

        Access 365 /Access 2019 數據庫中哪些函數功能和屬性被沙箱模式阻止(如未啟動宏時)

        2021-10-06 17:33:00
        zstmtony
        翻譯
        12557

        本文提供有關沙盒模式在 Access 中允許和阻止的功能和屬性的參考信息。請注意,Access 允許在沙箱模式下運行多個較新的函數,包括MonthNameStrReverse,現在它會阻止更多函數,包括Assistance、ExportNavigationPaneLoadCustomUI。在繼續操作時,請記住您必須信任(啟用其中的內容)數據庫或將數據庫放置在受信任的位置,以便本文中的信息可用。


        設置沙箱模式以運行不安全的表達式

        將表達式添加到數據庫時,Access 會在稱為沙箱模式的操作環境中運行該表達式。Access 默認啟用沙箱模式,反過來,沙箱模式始終禁用不安全的表達式,即使在您信任數據庫之后也是如此。

        如果您信任某個數據庫并且想要運行沙盒模式禁用的表達式,則可以通過更改禁用沙盒模式的注冊表項來運行該表達式。請記住,您必須首先信任數據庫才能執行本節中的步驟。

        此圖顯示了您在決定是否運行不安全表達式時遵循的過程。

        啟用或禁用沙盒模式的決策過程

        小心 錯誤地編輯注冊表可能會嚴重損壞您的操作系統,需要您重新安裝它。Microsoft 不能保證可以解決因錯誤編輯注冊表而導致的問題。在編輯注冊表之前,請備份所有有價值的數據。有關使用和保護計算機注冊表的最新信息,請參閱 Microsoft Windows 幫助。

        如果您不熟悉注冊表或不習慣自己更改注冊表項,請聯系正在或考慮將數據庫從早期版本的 Access 轉換為 Access 文件格式的人。此外,您必須在計算機上擁有管理員權限才能更改注冊表值。

        更改注冊表項

        重要提示: 執行這些步驟后,計算機上的所有用戶都可以在所有 Access 實例中運行不安全的表達式。

        執行以下操作之一:

        • 在 Microsoft Windows 7 或 Microsoft Windows 10 中

          1. 在任務欄上,單擊開始,然后單擊運行。

          2. 在“打開”框中,鍵入regedit,然后按 Enter。

            注冊表編輯器啟動。

          3. 展開 HKEY_LOCAL_MACHINE 文件夾并導航到以下注冊表項:

            \Software\Microsoft\Office\16.0\Access Connectivity Engine\Engines

            注意: 注意,14.0 表示 Access 2010,15.0 表示 Access 2013,16.0 表示 Access 2016 及更新版本。

          4. 在注冊表編輯器的右窗格中,在Name,雙擊SandboxMode。

            出現編輯 DWORD 值”對話框。

          5. Value Data字段中,將值從3更改2,然后單擊OK。

          6. 關閉注冊表編輯器。

        • 在 Windows Vista 中

          1. 單擊開始按鈕,指向所有程序,單擊附件,然后單擊運行。

          2. 在“打開”框中,鍵入regedit,然后按 Enter。

            注冊表編輯器啟動。

          3. 展開 HKEY_LOCAL_MACHINE 文件夾并導航到以下注冊表項:

            \Software\Microsoft\Office\16.0\Access Connectivity Engine\Engines

            注意: 注意,4.0 表示 Access 2010,15.0 表示 Access 2013,16.0 表示 Access 2016 及更新版本。

          4. 在注冊表編輯器的右窗格中,在Name,雙擊SandboxMode。

            出現編輯 DWORD 值”對話框。

          5. Value Data字段中,將值從3更改2,然后單擊OK。

          6. 關閉注冊表編輯器。

        重要 請記住,如果您不首先信任數據庫,則無論您是否更改此注冊表設置,Access 都會禁用任何不安全的表達式。

        您可以將注冊表值設置為以下值,0(零)表示最寬松,3 表示最不寬松。

        環境

        描述

        0

        沙盒模式始終處于禁用狀態。

        1

        沙盒模式用于 Access,但不適用于非 Access 程序。

        2

        沙盒模式用于非 Access 程序,但不適用于 Access。

        3

        沙盒模式一直在使用。這是安裝 Access 時設置的默認值。




        你能在Access數據庫沙盒模式sandbox mode使用的功能

        The following table lists the functions that you can use in Access database engine queries when sandbox mode is enabled. Any functions that do not appear in the list are not available in sandbox mode.

        Abs

        Array

        Asc

        Ascb

        Ascw

        Atn

        CBool

        CByte

        CCur

        CDate

        CDbl

        Choose

        Chr

        Chr$

        Chrb

        Chrb$

        Chrw

        Chrw$

        Cint

        Clng

        Cos

        Csng

        Cstr

        Cvar

        CVDate

        CVErr

        Date

        Date$

        DateAdd

        DateDiff

        DatePart

        DateSerial

        DateValue

        Day

        DDB

        Error

        Error$

        Exp

        Fix

        Format

        Format$

        FormatCurrency

        FormatDateTime

        FormatNumber

        FormatPercent

        FV

        Hex

        Hex$

        Hour

        IIf

        IMEStatus

        InStr

        InStrb

        Int

        IPmt

        IRR

        IsDate

        IsEmpty

        IsError

        IsNull

        IsNumeric

        IsObject

        LCase

        LCase$

        Left

        Left$

        Leftb

        Leftb$

        Len

        Lenb

        Log

        LTrim

        LTrim$

        Mid

        Mid$

        Midb

        Midb$

        Minute

        MIRR

        Month

        MonthName

        Now

        NPer

        Npm

        Oct

        Oct$

        Partition

        Pmt

        PPmt

        PV

        QBColor Function

        Rate

        Replace

        RGB

        Right

        Right$

        RightB

        Rightb$

        Rnd

        Round

        RTrim

        RTrim$

        Second

        Sgn

        Sgr

        Sin

        SLN

        Space

        Space$

        Str

        Str$

        StrComp

        StrConv

        String

        String$

        StrReverse

        Switch

        SYD

        Tan

        Time

        Time$

        Timer

        TimeSerial

        TimeValue

        Trim

        Trim$

        TypeName

        UCase

        UCase$

        Val

        VarType

        Weekday

        Year


        你在沙盒模式Access數據庫sandbox mode可能出錯的函數

        The following Visual Basic for Applications (VBA) functions will cause an error when the functions are called from an expression in an Access database engine query (tmtony), or when called from an Access property.

        AppActivate

        Beep

        Calendar

        CallByName

        ChDir

        ChDrive

        Command

        Command$

        CreateObject

        CurDir

        CurDir$

        DeleteSetting

        DoEvents

        Environ

        Environ$

        EOF

        Err

        FileAttr

        FileCopy

        FileDateTime

        FileLen

        FreeFile

        GetAllSettings

        GetAttr

        GetObject

        GetSetting

        Input

        Input$

        InputB

        InputB$

        Kill

        Load

        Loc

        LOF

        Randomize

        Reset

        SaveSetting

        Seek

        SendKeys

        SetAttr

        Shell

        Spc

        Tab

        Unload

        UserForms

        Width


        你在Access SandBox Mode沙盒模式可能被屏蔽(block)的函數

        Sandbox mode blocks the following Access functions when the functions are called from an expression in a query or from an Access property.

        AddAutoCorrect

        AddToFavorites

        ADOConnectString

        AnswerWizard

        Application

        Assistant

        Assistance

        AutoCorrect

        AutomationSecurity

        BeginUndoable

        CloseCurrentDatabase

        CodeContextObject

        CodeDb

        COMAddIns

        CommandBars

        CompactRepair

        ConvertAccessProject

        CreateAccessProject

        CreateAdditionalData

        CreateControl

        CreateControlEx

        CreateDataAccessPage

        CreateForm

        CreateGroupLevel

        CreateNewWorkgroupFile

        CreateReport

        DataAccessPages

        DBEngine

        DDEExecute

        DDEInitiate

        DDEPoke

        DDERequest

        DDESend

        DDETerminate DDETerminateAll

        DefaultWebOptions

        DefaultWorkspaceClone

        DelAutoCorrect

        DeleteControl

        DeleteReportControl

        DoCmd

        Echo

        ExportCustomFixedFormat*

        ExportNavigationPane

        ExportXML

        FeatureInstall

        FileDialog

        FileSearch

        FollowHyperlink

        GetHiddenAttribute

        ImportNavigationPane

        ImportXML

        InsertText

        LanguageSettings

        LoadCustomUI*

        LoadFromText

        LoadPicture

        Modules

        NewAccessProject

        NewCurrentDatabase

        NewFileTaskPane

        OpenAccessProject

        OpenCurrentDatabase

        Parent

        ProductCode

        Quit

        References

        RefreshDatabaseWindow

        RefreshTitleBar

        ReloadAddIns

        ReplaceModule

        Run

        RunCommand

        SaveAsText

        SetDefaultWorkGroupFile

        SetHiddenAttribute

        SetOption

        SetUndoRecording

        SysCmd

        TransformXML

        VBE


        Access在沙盒模式sandbox mode被屏蔽的屬性

        In addition to the functions listed in the previous section(tmtony), sandbox mode also blocks a number of object properties. The following table lists the objects and the blocked property or properties for each object.

        Object

        Blocked Property or Properties

        BoundObjectFrame

        Object

        Combobox

        Recordset

        Control

        Object

        CurrentProject

        AccessConnection, BaseConnectionString, CloseConnection, Connection, OpenConnection

        CustomControl

        Object

        Form

        Dynaset

        Hyperlink

        Add to favorites

        Listbox

        Recordset

        ObjectFrame

        Object

        Report

        Recordset

        SmartTagAction

        Execute

        Screen

        ActiveDataAccessPage


        分享