Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VBA in Word (Word03)

    I have the following code

    {IF { MERGEFIELD "Department" } = "OB" {INCLUDETEST "C:EducationOrientation RevisionOB.doc" abbreviations "" }

    That works correctly. Now for the but...

    I want the = to be something like this

    "OB OR "Nursery" OR "Labor and Delivery"

    I also put it between ( ) neither worked they both returned OR.

    I was wondering if I can put the reference to a different documents and a bookmark into my Access Database. If so how do I do that?

    Fay

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: VBA in Word (Word03)

    I think you are forced to nest all the additional IF fields in the False clause:

    { IF something TRUE_RESULT { IF something else TRUE_RESULT { if something else again TRUE_RESULT FALSE_RESULT } } }

    But others can give a more definitive answer...

Posting Permissions

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