SharedResource Object
Collapse the table of content
Expand the table of content

SharedResource Object (Access)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a Microsoft Office theme or image that is available as a shared resource in the database.

A shared recource is stored once in the database, but can be used many times. For example, you may want to display your company logo on every form that you create. In earlier versions of Access, you had to import the logo into every form. In Access, you can add the logo as a shared image. Then , it will be displayed in the Image Gallery that is displayed when you click the Insert Image dropdown menu for the Controls group in the Design tab.

To import an image as a SharedResource object, use the AddSharedImage method of the CodeProject object or the AddSharedImage method of the CurrentProject object.

© 2016 Microsoft