AccessObject.IsLoaded 屬性 (Access)

使用 IsLoaded 屬性來判斷目前是否已載入 AccessObject 物件。 唯讀的 Boolean

語法

運算式IsLoaded

表達 代表 AccessObject 物件的 變數。

註解

IsLoaded 屬性使用下列設定值。

設定 Visual Basic 描述
True 已載入指定的 AccessObject
False 無法載入指定的 AccessObject

範例

下列範例示範如何防止使用者直接從流覽窗格開啟特定表單。

'Don't let this form be opened from the Navigator
If Not CurrentProject.AllForms(cFormUsage).IsLoaded Then
    MsgBox "This form cannot be opened from the navigation pane.", _
        vbInformation + vbOKOnly, "Invalid form usage"
    Cancel = True
    Exit Sub
End If

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應