BuiltIn Property

Microsoft Access Visual Basic

BuiltIn Property

       

The BuiltIn property returns a Boolean value indicating whether a Reference object points to a default reference that's necessary for Microsoft Access to function properly. Read-only Boolean.

expression.BuiltIn

expression   Required. An expression that returns one of the objects in the Applies To list.

Setting

The BuiltIn property is available only by using Visual Basic and is read-only.

The BuiltIn property returns the following values.

Value Description
True (–1) The Reference object refers to a default reference that can't be removed.
False (0) The Reference object refers to a nondefault reference that isn't necessary for Microsoft Access to function properly.

Remarks

The default references in Microsoft Access include the Microsoft Access 10.0 object library, the Visual Basic For Applications library, OLE Automation library, and Microsoft ActiveX Data Objects 2.1 library.

Example

The following example prints the default references in the References collection:

Sub ReferenceBuiltInOnly()
    Dim ref As Reference

    ' Enumerate through References collection.
    For Each ref In References
        ' Check BuiltIn property.
        If ref.BuiltIn = True Then
            Debug.Print ref.Name
        End If
    Next ref
End Sub