Share via


WebOptions Object [Access 2003 VBA Language Reference]

DataAccessPage
WebOptions

A WebOptions object refers to a specific Microsoft Access data access page's web option properties.

Using the WebOptions Object

Use the WebOptions property to return the WebOptions object.

Contains data access page attributes used by Microsoft Access when you save a data access page as a Web page or open a Web page. You can return or set attributes either at the application (global) level or at the data access page level. (Note that attribute values can be different from one data access page to another, depending on the attribute value at the time the data access page was saved.) Data access page-level attributes override application-level attributes. Application-level attributes are contained in the DefaultWebOptions object.

Remember that if you change the value of a data access page-level attribute, the corresponding application-level attribute is automatically set to the same value. Therefore, you should restore and save the application-level values for a given data access page during each session in that data access page.

The following example checks to see whether Microsoft Office Web components are downloaded when a saved data access page ("Inventory") is displayed and sets the download flag accordingly.

Set objAppWebOptions = DataAccessPages("Inventory").WebOptions
With objAppWebOptions
    If .DownloadComponents = True Then
        strCompDownload = "Loaded"
    Else
        strCompDownload = "Not Loaded"
    End If
End With

Properties | DownloadComponents Property | Encoding Property | FolderSuffix Property | LocationOfComponents Property | OrganizeInFolder Property | TargetBrowser Property | UseLongFileNames Property

Methods | UseDefaultFolderSuffix Method

Parent Objects | DataAccessPage Object

Child Objects

See Also | DataAccessPage Object