Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
mcalex mcalex is offline
external usenet poster
 
Posts: 8
Default Ignore merge field codes when field doesn't exist

Hi, I work at a charity, and we have a template letter document that prints
different receipt letters depending on different donations.

Sometimes, raffle tickets will have been purchased, and we need to add the
ticket range info to the letter. The problem is that letters without raffle
ticket information don't have ticket info fields in the data. Therefore, I
get "Error! MergeField was not found in header record of data source" errors.
Is there a way to display field data only if the field actually exists in
the data source? Something like 'if exists {mergefield firstTicket}' or '{if
{mergefield firstTicket } is not null'

thanks for any help
Using:
Word 2003
Win XP Pro
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Switches/field codes to fix zip code in merge MrsMac Mailmerge 8 December 30th 07 06:48 AM
Field codes: MergeField field RTF format problem Amdious Mailmerge 4 September 17th 07 02:38 PM
Merge Field Codes accessing Content Controls Peter Tippett Microsoft Word Help 0 January 12th 07 01:47 AM
Saving word document with field results not field codes Cambdoc Microsoft Word Help 2 July 14th 06 10:51 AM
Field Codes disapearing During a mail merge Ernie Microsoft Word Help 2 April 28th 06 08:35 PM


All times are GMT +1. The time now is 09:21 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"