Applies To ActiveX control, Bound Object Frame control, Chart control, Check Box control, Combo Box control, Command Button control, Form section, Image control, Label control, Line control, List Box control, Option Button control, Option Group control, Rectangle control, Subform/Subreport control, Tab control, Text Box control, Toggle Button control, Unbound Object Frame control.
Description
You can use the DisplayWhen property to specify which of a form's sections or controls you want displayed on screen and in print.
Note The DisplayWhen property applies only to the following form sections: detail, form header, and form footer. It also applies to all controls (except page breaks) on a form.Setting
The DisplayWhen property uses the following settings.
Setting | Description | Visual Basic |
Always | (Default) The object appears in Form view and when printed. | 0 |
Print Only | The object is hidden in Form view but appears when printed. | 1 |
Screen Only | The object appears in Form view but not when printed. | 2 |
See Also Enabled, Locked properties, Visible property.