References.AddFromFile method (Access)

The AddFromFile method creates a reference to a type library in a specified file.

Syntax

expression.AddFromFile (FileName)

expression A variable that represents a References object.

Parameters

Name Required/Optional Data type Description
FileName Required String A string expression that evaluates to the full path and file name of the file containing the type library to which you wish to set a reference.

Return value

Reference

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.