ApplyTheme Method

Microsoft Access Visual Basic

ApplyTheme Method

       

You can use the ApplyTheme method to specify the Microsoft Office theme for a specified data access page.

expression.ApplyTheme(ThemeName)

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

ThemeName  Required String. The name of the Office theme.

Remarks

The ApplyTheme method provides a means of changing environment options from Visual Basic code.

Example

The following example applies the Artsy theme to the data access page named "Switchboard".

DataAccessPages("Switchboard").ApplyTheme "Artsy"