Compartilhar via


MailMergeDataSource Object Members

Word Developer Reference

Represents the mail merge data source in a mail merge operation.

Methods

  Name Description
Bb257634.methods(en-us,office.12).gif Close Closes the specified Mail Merge data source.
Bb257634.methods(en-us,office.12).gif FindRecord Searches the contents of the specified mail merge data source for text in a particular field. Returns True if the search text is found. Boolean.
Bb257634.methods(en-us,office.12).gif SetAllErrorFlags Marks all records in a mail merge data source as containing invalid data in an address field.
Bb257634.methods(en-us,office.12).gif SetAllIncludedFlags Includes or excludes flagged records in a data source from a mail merge.

Properties

  Name Description
Bb257634.properties(en-us,office.12).gif ActiveRecord Returns or sets the active mail merge record. Can be either a valid record number in the query result or one of the WdMailMergeActiveRecord constants.
Bb257634.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb257634.properties(en-us,office.12).gif ConnectString Returns the connection string for the specified mail merge data source. Read-only String.
Bb257634.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb257634.properties(en-us,office.12).gif DataFields Returns a MailMergeDataFields collection that represents the fields in the specified mail merge data source. Read-only.
Bb257634.properties(en-us,office.12).gif FieldNames Returns a MailMergeFieldNames collection that represents the names of all the fields in the specified mail merge data source. Read-only.
Bb257634.properties(en-us,office.12).gif FirstRecord Returns or sets the number of the first record to be merged in a mail merge operation. Read/write Long.
Bb257634.properties(en-us,office.12).gif HeaderSourceName Returns the path and file name of the header source attached to the specified mail merge main document. Read-only String.
Bb257634.properties(en-us,office.12).gif HeaderSourceType Returns a value that indicates the way the header source is being supplied for the mail merge operation. Read-only WdMailMergeDataSource.
Bb257634.properties(en-us,office.12).gif Included True if a record is included in a mail merge. Read/write Boolean.
Bb257634.properties(en-us,office.12).gif InvalidAddress True for Microsoft Office Word to mark a record in a mail merge data source if it contains invalid data in an address field. Read/write Boolean.
Bb257634.properties(en-us,office.12).gif InvalidComments If the InvalidAddress property is True, returns or sets a String that describes an invalid address error. Read/write.
Bb257634.properties(en-us,office.12).gif LastRecord Returns or sets the number of the last record to be merged in a mail merge operation. Read/write Long.
Bb257634.properties(en-us,office.12).gif MappedDataFields Returns a MappedDataFields collection that represents the mapped data fields available in Microsoft Word.
Bb257634.properties(en-us,office.12).gif Name Returns name of the specified object. Read-only String.
Bb257634.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified MailMergeDataSource object.
Bb257634.properties(en-us,office.12).gif QueryString Returns or sets the query string (SQL statement) used to retrieve a subset of the data in a mail merge data source. Read/write String.
Bb257634.properties(en-us,office.12).gif RecordCount Returns a Long that represents the number of records in the data source. Read-only.
Bb257634.properties(en-us,office.12).gif TableName Returns a String with the SQL query used to retrieve the records from the data source file attached to a mail merge document. Read-only.
Bb257634.properties(en-us,office.12).gif Type Returns the type of mail merge data source. Read-only WdMailMergeDataSource.