NavigationButton.ObjectPalette property (Access)

The ObjectPalette property specifies the palette in the application used to create a bitmap or other graphic that is loaded into the specified control by using the Picture property. Read/write Variant.

Syntax

expression.ObjectPalette

expression A variable that represents a NavigationButton object.

Remarks

Microsoft Access sets the value of the ObjectPalette property to a String data type containing the palette information. Use this setting to set the value of the PaintPalette property for a form or report.

If the application associated with the bitmap or other graphic doesn't have an associated palette, the ObjectPalette property is set to a zero-length string.

The ObjectPalette property is read-only in form Design view, Form view, and report Design view. This property setting is unavailable in other views.

The setting of the ObjectPalette property makes the palette of the application that is associated with the OLE object contained in a control available to the PaintPalette property of a form or report. For example, to make the palette used in Graph available when you are designing a form in Microsoft Access, you set the form's PaintPalette property to the ObjectPalette value of an existing chart control.

Note

Windows can have only one color palette active at a time. Access allows you to have multiple graphics on a form, each using a different color palette. The PaintPalette and PaletteSource properties let you specify which color palette a form should use when displaying graphics.

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.