MailMergeDataSource.InvalidAddress Property
Publisher Developer Reference |
True to mark a record in a mail merge data source if it contains invalid data. Read/write Boolean.
Syntax
expression.InvalidAddress
expression A variable that represents an MailMergeDataSource object.
Return Value
Boolean
Remarks
Use the SetAllErrorFlags method to set both the InvalidAddress and InvalidComments properties for all records in a data source.
Example
This example searches the records to verify that the length of the PostalCode field for each record is at least five digits long. If it is not, the record is excluded from the mail merge and flagged as invalid.
Visual Basic for Applications |
---|
|
See Also