Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.SaveAsTemplate Method (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Converts an existing Access database file to a database template (*.accdt) format file.

Syntax

expression. SaveAsTemplate( ** Path, ** Title, ** IconPath, ** CoreTable, ** Category, ** PreviewPath, ** Description, ** InstantiationForm, ** ApplicationPart, ** IncludeData )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
PathRequiredStringThe full path and file name of the database template to create.
TitleRequiredStringThe name of the database that is created when the instantiates the template.
IconPathRequiredStringAn image file to be used as an icon for the database template.
CoreTableRequiredStringThe table that contains the data that users would most want to create a relationship with when they instantiate the template. The Application Part argument must be set to True if you set use this argument.
CategoryRequiredStringThe template category under which the database template will appear on the Available Templates page.
PreviewPathOptionalVariantAn image file to be used as a preview for the database template on the Available Templates page.
DescriptionOptionalVariantA description to be displayed when the user selects the database template in the Available Templates page.
InstantiationFormOptionalVariantSpecifies the name of the form to be displayed when the template is instantiated.
ApplicationPartOptionalVariantSpecifies whether the template will be displayed when the user clicks Application Parts in the Templates group of the Create ribbon tab. Set to True to display the template when the user clicks Application Parts.
IncludeDataOptionalVariantSpecifies whether the table data is included in the template. Set to True to include the table data.

Remarks

The SaveAsTemplate method replaces the SaveAsTemplate method that was installed with the Microsoft Office Access 2007 Developer Extensions.

Templates created by the SaveAsTemplate method cannot be used in Microsoft Office Access 2007 or earlier versions.

See also

Concepts

Application Object

© 2017 Microsoft