G.9. The ImportExportSpecification Object

Access 2007 introduces a new technique for creating and managing import and export specifications. If you worked with specifications in previous versions of Access, you'll be glad to know that you can create a specification for each of the supported file types for import and export! No longer are specifications limited to text files. With the addition of this new feature, Microsoft has added the ImportExportSpecification object and ImportExportSpecifications collection. Obviously, this collection contains ImportExportSpecification objects and consists of the standard collection members: Add, Item, Count.

G.9.1. ImportExportSpecification Object Properties

The following table describes the properties of the ImportExportSpecification object.

PropertyData TypeDescription
ApplicationApplication objectReturns the current Application object for the specification.
DescriptionStringSpecifies a friendly description for the specification.
NameStringSpecifies the name of the specification.
ParentObjectthe CurrentProject or CodeProject object for the specification.
XMLStringSpecifies the XML representation of the specification.

G.9.2. ImportExportSpecification Object Methods

The ImportExportSpecification object's methods are described here:

MethodArgumentsDescription
DeleteNoneDeletes the current specification.
ExecutePromptExecutes the import or export specification.

Get Access™ 2007 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.