AccessObject.IsLoaded Property (Access)
You can use the IsLoaded property to determine if an AccessObject is currently loaded. Read-only Boolean.
Syntax
식 .IsLoaded
식 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 form opening a particular form directly from the Navigation Pane.
Sample code provided by: The Microsoft Access 2010 Programmer’s Reference | About the Contributors
'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
About the Contributors
Wrox Press(영문일 수 있음)는 프로그래머가 프로그래머를 위해 집필한 서적을 전문으로 출판하는 업체로, 이러한 서적에서는 실제 프로그래밍 관련 문제에 대한 신뢰할 수 있는 해결 방법을 제공합니다.