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.
Property | Data Type | Description |
---|---|---|
Application | Application object | Returns the current Application object for the specification. |
Description | String | Specifies a friendly description for the specification. |
Name | String | Specifies the name of the specification. |
Parent | Object | the CurrentProject or CodeProject object for the specification. |
XML | String | Specifies the XML representation of the specification. |
G.9.2. ImportExportSpecification Object Methods
The ImportExportSpecification object's methods are described here:
Method | Arguments | Description |
---|---|---|
Delete | None | Deletes the current specification. |
Execute | Prompt | Executes 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.