The bitmap that is displayed in an Image object.

Property of

Image

Description

An Image object can display either a static file from disk, a resource image, or a bitmap stored in a table. Set the dataSource property to either one of the following:

A string containing the word FILENAME, a space, and the name of a file. The string is not case-sensitive.

A string of the form "RESOURCE <resource id> <dll name>", which specifies a bitmap resource and the DLL file that holds it.

A string containing the form BINARY, a space, and the name of a binary field in a table open in a work area that contains bitmapped images.

A reference to a field object in an open query that contains bitmapped images.

If you assign a field object (or a field in a work area) as the dataSource, the Image object will automatically update as you navigate from row to row, unless the rowset’s notifyControls property is set to false.

The dataSource property is similar to the dataLink property used for Field objects, except that data displayed through the dataLink property can be changed, while data displayed through the dataSource property is always read-only.

An Image object’s dataSource is automatically set when you use the Form Wizard or use a bitmap image field in the Field Palette.