Share via


Manipulating Objects with OLE Container Control and OLE Bound Control

You add an OLE object to a form by clicking the OLE Container Control tool and dragging it to size in the Form window. This tool can represent a server object such as Microsoft Excel or Word, or it can represent an ActiveX control if your Windows SYSTEM directory contains ActiveX controls (files with an .ocx extension). For general information about ActiveX controls, see Adding OLE.

OLE Bound Control

You can create a bound OLE object on a form by clicking this tool and dragging it to size in the Form window. After creating the object, you connect it to a General field in a table. Then, you use the object to display the contents of the field. For example, if you store Word documents in a General field, you can display the contents of these documents by using a bound OLE object on a form.

To create a bound OLE object

  1. Create or open a form.
  2. In the Form Controls toolbar, choose the OLE Bound Control button and drag it to size on the form.
  3. Bind the OLE object to a General field by setting the object's ControlSource property.

For an example of using the OLE Bound control, see Adding OLE.

See Also

Extending Forms | Making Controls Easier to Use | Displaying Controls in Grid Columns | Using Controls | Controls and Objects