DownloadComponents Property

Microsoft Access Visual Basic

expression.DownloadComponents

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

Remarks

The DownloadComponents property uses the following settings.

Setting Visual Basic Description
Yes True The necessary Office controls are downloaded when you view the saved document in a Web browser.
No False (Default) Do not download the controls.

Note  The DownloadComponents property is available only by using Visual Basic.

You can set the LocationOfComponents property to a central URL where the controls can be downloaded by authorized users viewing your saved data access page. The path must be valid and must point to a location that contains the necessary components, and the user must have a valid Microsoft Office license.

Office Web components add interactivity to data access pages that you save as Web pages. If you view a Web page in a browser on a computer that does not have the components installed, the interactive portions of the page will be static.

Example

This example allows the Office Web components to be downloaded with the specified Web page, if they are not already installed.

Application.DefaultWebOptions.DownloadComponents = True
Application.DefaultWebOptions.LocationOfComponents = _
    Application.CurrentProject & "\foo"