CurrentProject.AddSharedImage Method (Access)

Imports the the specified image into the database and adds it to the SharedResources collection.

Version Added: Access 2010

expression .AddSharedImage(SharedImageName, FileName)

expression A variable that represents a CurrentProject object.

Parameters

Name

Required/Optional

Data Type

Description

SharedImageName

Required

String

Specifies the string used to identify the image in the collection.

FileName

Required

String

Specifies the full name and path to the image file.

Use the AddSharedImage method when you have an image that you want to use repeatedly, such as a companny logo. The AddSharedImage method makes the image available in the Insert Image dropdown of the Controls group in the Design tab.

Show:
© 2014 Microsoft