DisplayType Property

Applies To

Bound Object Frame Control, Chart Control, Unbound Object Frame Control.

Description

You can use the DisplayType property to specify whether Microsoft Access displays an OLE object’s content or an icon. For example, if the OLE object is a Microsoft Word document and you set this property to Content, the control displays the Word document; if you set this property to Icon, the control displays the Word icon.

Setting

The DisplayType property uses the following settings.

Setting Description Visual Basic
Content (Default) When the control contains an OLE object, the control displays the object’s data, such as a document or spreadsheet. acOLEDisplayContent (0)
Icon When the control contains an OLE object, the control displays the object’s icon. acOLEDisplayIcon (1)


You can set the DisplayType property using the property sheet, a macro, or Visual Basic. You can also set this property in a control’s default control style.

For a bound object frame, the DisplayType property can be set only in Design view but can be read in all views. For an unbound object frame or chart, the property can be set in the Insert Object dialog box when the object is created.

Remarks

The DisplayType property determines the default setting of the Display As Icon check box in the Paste Special and Object dialog boxes. When you display these dialog boxes in Form view, Datasheet view, or Design view, the Display As Icon check box is automatically selected if the DisplayType property is set to Icon. For example, you will see these boxes selected when using Visual Basic to set the control’s Action property to acOLEInsertObjDlg or acOLEPasteSpecialDlg.

The DisplayType property setting has no effect on the state of the Display As Icon check box in the Object dialog box when you insert an object into an unbound object frame. When you paste an object from the Clipboard, the Display As Icon check box reflects the state of the object on the Clipboard.

Changing the DisplayType property of a bound object frame doesn’t affect the display of existing objects in the control; however, it will affect new objects that you add to the control using the Object command on the Insert menu.

See Also

Action Property.