0

我正在尝试使用目录作为源的邮件合并工作,这将帮助我对当前模板中的记录进行分类。

我正在使用这个域代码:{QUOTE{IF{MERGESEQ}=1{SET Key ""}}"{IF{MERGEFIELD Description}<> {KEY}"{IF{MERGESEQ}>1" "} Values for {MERGEFIELD Description}{SET Key{MERGEFIELD Description}} Input "}{MERGEFIELD ColDesc} "}

现在我得到的输出对于一个新的新文档来说很好,但是当我使用现有模板尝试这段代码时,它输出的是它合并的每条记录的文档。

我想要的是一个页面上的这种输出:

Details for the record selected from the file provided:


Values for 'Subjects'
Input
Study ID
Class ID
Subject Name
Student ID

Values for 'Visits'
Input
Visit ID
Visit date
Room No.
Summary 
etc.....

但我的输出如下:

Details for the record selected from the file provided:
Values for 'Subjects'
Input
Study ID
Class ID
Subject Name
Student ID


Details for the record selected from the file provided:
Values for 'Visits'
Input
Visit ID
Visit date
Room No.
Summary

所有建议表示赞赏。

最好的

4

1 回答 1

0

是的,

我能够弄清楚我的问题。

我点击了这个链接http://windowssecrets.com/forums/showthread.php/111149-Mailmerge-Tutorial-Create-Sorted-Listings-(2000-2010 )

并且在那

本教程展示了如何进行分类。根据我的描述,主题“按类别合并记录”下的字段似乎将作为该项目的基础。如果只想在合并第一条记录时输出一些内容,只需修改这部分字段:

{IF{MERGESEQ}= 1 {SET Key " "}}
to, for example:
{IF{MERGESEQ}= 1 "{SET Key " "}Record 1"}

酷,到目前为止一切顺利。

于 2012-11-01T16:18:51.213 回答