The ActiveX Component Object Model (COM) is a standard that
specifies the object model and programming requirements that enable COM objects
to interact with other objects in a container program, such as Access.
The COM defines sets of related functions, called interfaces, that
are common to all COM-based technologies. The functions within each interface
are called methods. Sets of interfaces, called component categories, identify
an entire area of functionality, such as databinding. When an ActiveX control
is installed, it registers those component categories that it requires, and
those that it supports, in the Microsoft Windows registry. A container program
can check the registry to see if it supports a control's component category
requirements before it offers that control to a user.
Access 2000,
as an ActiveX control container, requires a control to support a base set of
interfaces. Other interfaces and component categories are optionally supported
in Access 2000, and still others are not supported at all. The following
information will assist you in creating ActiveX controls with the features best
suited for use in Access 2000 databases.
ActiveX Interfaces Required by Access 2000
- IOleObject, which is the principal means by which an embedded control
communicates with the Access 2000 container and vice versa.
- IPersistStorage, which defines methods that enable Access 2000 to load and save
the control. Access 2000 uses the methods in this interface to initialize the
control, and to instruct the control to perform save operations or to release
its storage.
- IViewObject, which allows a control to display itself directly. Methods in
this interface, for example, allow you to draw the control on the screen.
- IOleControl, which provides features for supporting keyboard mnemonics,
ambient properties, and events in control objects.
ActiveX Component Categories Supported in Access 2000
- Simple Databinding, which is the ability to bind one property of a control to a
field in a table.
- The Controls component category.
ActiveX Component Categories Not Supported in Access 2000