CustomControl.Custom property (Access)

Returns or sets a String representing the custom properties dialog box for an ActiveX control. Read/write.

Syntax

expression.Custom

expression A variable that represents a CustomControl object.

Remarks

Not all ActiveX controls provide a custom properties dialog box. To see whether a control provides this custom properties dialog box, look for the Custom property in the Microsoft Access property sheet for this control. If the list of properties contains the name Custom, the control provides the custom properties dialog box.

After you choose the Custom property box in the Microsoft Access property sheet, choose the Build button to the right of the property box to display the control's custom properties dialog box, often presented as a tabbed dialog box. Choose the tab that contains the interface for setting the properties that you want to set.

After you make changes on one tab, you can often apply those changes immediately by choosing the Apply button (if provided). You can choose other tabs to set other properties as needed. To approve all changes made in the custom properties dialog box, choose OK. To return to the Microsoft Access property sheet without changing any property settings, choose Cancel.

You can also view the custom properties dialog box by choosing the Properties subcommand of the ActiveX control Object command (for example, Calendar Control Object) on the Edit menu, or by choosing this same subcommand on the shortcut menu for the ActiveX control. In addition, some properties in the Microsoft Access property sheet for the ActiveX control, like the GridFontColor property of the Calendar control, have a Build button to the right of the property box. When you choose the Build button, the custom properties dialog box is displayed, with the appropriate tab selected (for example, Colors).

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.