View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Checkboxes on mailmerge recipients list

Roughly speaking the checked/unchecked states of these boxes correspond to
the value of ActiveDocument.MailMerge.DataSource.Included for the
ActiveRecord.

In other words, if you want to set or examine the checkbox value, you have
to navigate to the record you want then examine or modify the value of
..Included.

However,
a. it isn't particularly easy to manipulate the .ActiveRecord reliably, in
the general case (the facilities for doing this are a bit weird, and if you
do it one way, you'll find that when you iterate through the records, you
will not even see the ones where Included is set to False)
b. my recent tests in this area have tended to hang Word.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Steffen Grellmann" wrote in message
...
Hi newsgroup,

I'm quite familiar how Word is handling SELECT-statements.

What I want to do is to programmatically access/set the state of the
checkboxes in the "mailmerge recipients list" in order to set that
state on my own Word form (which includes a similar recipients list).

How is Word reaching that unchecked items are not printed when
executing the mail merge?

Could someone bring more light on this, please?
Your time and help is higly appreciated.

Kind regards,

Steffen