A Microsoft Access 2.0 developer uses the methods associated with a custom control to manipulate that control. For example, you could use the NextMonth and PreviousMonth methods for the Calendar control to display the calendar for the subsequent or prior month. A developer uses the events associated with a control to update the control or to synchronize the control with a selected record, section, or environment. For example, you could use the Click event for the Calendar control to start a procedure that retrieves the specified date and adds it to the appropriate record. A developer uses the properties associated with a control to display or retrieve data. For example, you could use the Value property for the Calendar control to retrieve the date selected by the user.
The events for an OLE custom control can be accessed through the drop-down list box in the module toolbar. In some cases, the events for an OLE custom control have identical names to the events for the unbound object frame. When this happens, Microsoft Access 2.0 always gives precedence to the custom control's event procedure.
The properties for an OLE custom control can be set using Microsoft Access Basic or the property sheet associated with the control. You can access this property sheet via the right-click menu, select the Control Object option, and click Properties.
To add an OLE custom control to a form: