AccessObject.IsLoaded property (Access)
Use the IsLoaded property to determine if an AccessObject object is currently loaded. Read-only Boolean.
Syntax
expression.IsLoaded
expression A variable that represents an AccessObject object.
Remarks
The IsLoaded property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
Yes | True | The specified AccessObject is loaded. |
No | False | The specified AccessObject is not loaded. |
Example
The following example shows how to prevent a user from opening a particular form directly from the navigation pane.
'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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.