Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2004

Tip: Looking for answers? Try searching our database.

If...Then...Else referencing data source and using bookmarks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shelly - 02 Nov 2004 17:19 GMT
We have been sucessfully using the following If...Then...Else statement in a
mail merge word doc for some time now.

{IF {MERGEDFIELD paragraph1} <> "" "{INCLUDETEXT "h:\\0405bookmarks.doc"
{MERGEFIELD paragraph1} \*MERGEFORMAT}" ""}

This statement is repeated one right after the other with a possibility of
11 different paragraphs.  It has been working fine.  The datasource has a
certain vaule in the mergefield in the place of one of the paragraphs, the
0405bookmarks document is called and a bookmark code that matches the
mergefield inserts a paragraph.

The problem is that most of the time there is only 1 - 3 paragraphs.  Lately
we have had instances where 4 or more paragraphs are needed.  It will insert
the paragraphs, however, one paragraph will get repeated when 4 or more are
inserted.  It's never the same paragraph, it's random which is natural
because the data source would have different codes for different records.

Can anyone figure out why we are getting a duplicate paragraph?  Is there
something wrong in our code?

Shelly
Doug Robbins - 03 Nov 2004 01:17 GMT
Have you tried updating the fields in the document that is produced (Ctrl+a,
F9)?  That is quite often necessary when using INCLUDETEXT or INCLUDEPICTURE
in a mailmerge.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> We have been sucessfully using the following If...Then...Else statement in
> a
[quoted text clipped - 22 lines]
>
> Shelly
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.