Reference.GUID property (Access)
The GUID property of a Reference object returns a GUID that identifies a type library in the Windows Registry. Read-only String.
Syntax
expression.GUID
expression A variable that represents a Reference object.
Remarks
Every type library has an associated GUID that is stored in the Registry. When you set a reference to a type library, Microsoft Access uses the type library's GUID to identify the type library.
Use the AddFromGUID method to create a Reference object from a type library's GUID.
Example
The following example prints the value of the FullPath, GUID, IsBroken, Major, and Minor properties for each Reference object in the References collection.
Sub ReferenceProperties()
Dim ref As Reference
' Enumerate through References collection.
For Each ref In References
' Check IsBroken property.
If ref.IsBroken = False Then
Debug.Print "Name: ", ref.Name
Debug.Print "FullPath: ", ref.FullPath
Debug.Print "Version: ", ref.Major & "." & ref.Minor
Else
Debug.Print "GUIDs of broken references:"
Debug.Print ref.GUID
EndIf
Next ref
End Sub
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.