ODSOColumn Object
Represents a field in a data source. The ODSOColumn object is a member of the ODSOColumns collection.
Remarks
The ODSOColumns collection includes all the data fields in a mail merge data source (for example, Name, Address, and City).
You cannot add fields to the ODSOColumns collection. All data fields in a data source are automatically included in the ODSOColumns collection.
Use Columns (), where is the data field name or index number, to return a single ODSOColumnobject. The index number represents the position of the data field in the mail merge data source.
Example
This example retrieves the name and value of the first field of the first record in the data source attached to the active publication.
| Visual Basic for Applications |
|---|
|
See also:
- Object Model Reference
- ODSOColumn Object Members
- ODSOColumns Object
- ODSOFilter Object
- ODSOFilters Object
- OfficeDataSourceObject Object
| index | index |