Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Dec 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using OR / AND in an expression on mail merge

    I am merging from a database application.

    I would like to have the expression as follows:-

    IF (Mergefield A = 1) OR (MergeField B = 1) then .....

    Can this be done in Word - The MergeFields include a number from 0 to 2 and I only want the text to be printed if either of them are 1!

    If so, can you give me an exmaple?

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Cross-posted AND ANSWERED BEFORE POSTING HERE at: http://www.msofficeforums.com/mail-m...f-command.html
    Please read our policy on Cross-Posting in rule #14: http://windowssecrets.com/forums/faq...n#crossposting
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •