... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Microsoft Word Suite
85
The following example displays the field names in the data source associated with the active
document.
repeat with aField in (get data merge field names of data source of ¬
data merge of active document)
display dialog name of aField as string
end repeat
The following example opens the data source associated with Form letter.doc and determines
whether the FirstName field includes the name "Kate."
set dmDoc to data merge of document "Form letter.doc"
edit data source dmDoc
if (find record data source of dmDoc find text "Kate" field name "FirstName") ¬
is
true
then
display dialog "Data was found"
end if
Properties
active record
Returns or sets the active data merge data record. Read/write.
Can be either a valid data record number in the query result or one of the following:
·
first record
·
last record
·
next record
·
no active record
·
previous record
Note The active data record number is the position of the record in the query result produced
by the current query options; as such, this number isn't necessarily the position of the record in
the data source.
connect string
Returns the connection string for the specified data merge data source. Read-only.
first record
Returns or sets the number of the first data record to be merged in a data merge operation.
Read/write.
header source name
Returns the path and file name of the header source attached to the specified data merge main
document. Read-only.
Summary :
Can be either a valid data record number in the query result or one of the following: · first record · last record · next record · no active record · previous record Note The active data record number is the position of the record in the query result produced by the current query options;
Tags :
source,merge,actie,name,document,returns,number,field,following,string,dmdoc,query,first