PaletteSource Property

Applies To

Form, Report.

Description

You can use the PaletteSource property to specify the palette for a form or report.

Setting

Enter the path and filename of one of the following file types:

  • .dib (device independent bitmap file)
  • .pal (Windows palette file)
  • .ico (Windows icon file)
  • .bmp (Windows bitmap file)

The default setting is (Default), which specifies the palette included with Microsoft Access. If you change this setting by entering a path and filename, the property setting displays the word Custom.

You can set this property using the property sheet, a macro, or Visual Basic.

For a form, you can set the PaletteSource property in Design view and Form view.

For a report, you can set the PaletteSource property only in Design view.

Remarks

Windows can have only one color palette active at a time. Microsoft Access allows you to have multiple graphics on a form, each using a different color palette. The PaletteSource property lets you specify which color palette a form uses when displaying graphics.

When you set the PaletteSource property for a form or report, Microsoft Access automatically updates its PaintPalette property. Conversely, when you set a form’s or report’s PaintPalette property, the PaletteSource property is also updated. For example, when you specify a custom palette with the PaintPalette property, the PaletteSource property setting changes to Custom.

See Also

ObjectPalette Property, PaintPalette Property.