Applies To Bound Object Frame control, Chart control, Unbound Object Frame control.
Description
You can use the OLETypeAllowed property to specify the type of OLE object a control can contain.
Setting
The OLETypeAllowed property uses the following settings.
Setting | Description | Constant |
Linked | The control can contain only a linked object. | acOLELinked |
Embedded | The control can contain only an embedded object. | acOLEEmbedded |
Either | (Default) The control can contain either a linked or an embedded object. | acOLEEither |
See Also OLEType property.
Example See the Action property example. You can set the KeepTogether property for a group by using the Sorting And Grouping box, a macro, or Visual Basic. In Visual Basic, you set the KeepTogether property for a group in report Design view or the Open event procedure of a report by using the GroupLevel property. Remarks To set the KeepTogether property for a group to a value other than No, you must set the GroupHeader or GroupFooter property or both to Yes for the selected field or expression. A group includes the group header, detail section, and group footer. If you set the KeepTogether property for a group to Whole Group and the group is too large to fit on one page, Microsoft Access will ignore the setting for that group. Similarly, if you set this property to With First Detail and either the group header or detail record is too large to fit on one page, the setting will be ignored. If the KeepTogether property for a section is set to No and the KeepTogether property for a group is set to Whole Group or With First Detail, the KeepTogether property setting for the section is ignored.See Also CreateGroupLevel function, GroupHeader, GroupFooter properties, GroupInterval property, GroupLevel property, GroupOn property, GrpKeepTogether property, KeepTogether property — sections, SortOrder property.
Example See the GroupInterval property example.