• Merge Word Document and Insert Word Field

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Merge Word Document and Insert Word Field

    Author
    Topic
    #458188

    I have a 2003 Microsoft Word memo document that I am merging with an Access Database file. I want the memo to reflect the information in the database field Phone2 however if Phone2 is empty then I want the memo to state “Did not provide alternate info”.

    I have tried to use the If…then…else but obviously I am not doing something correctly. Any help appreciated.

    Viewing 0 reply threads
    Author
    Replies
    • #1151357

      I have a 2003 Microsoft Word memo document that I am merging with an Access Database file. I want the memo to reflect the information in the database field Phone2 however if Phone2 is empty then I want the memo to state “Did not provide alternate info”.

      I have tried to use the If…then…else but obviously I am not doing something correctly. Any help appreciated.

      The easiest solution is to create a query in Access with a field like this:

      ThePhone: Nz([Phone2],”Did not provide alternate info”)

      and use the query as data source.

      Another solution would be a field in Word of the form

      { IF { MERGEFIELD “Phone2” } = “” “Did not provide alternate info” “{MERGEFIELD “Phone2″ }” }

      Remember, never type the field braces { } yourself, press Ctrl+F9 to insert them.

      • #1151404

        The easiest solution is to create a query in Access with a field like this:

        ThePhone: Nz([Phone2],”Did not provide alternate info”)

        and use the query as data source.

        Another solution would be a field in Word of the form

        { IF { MERGEFIELD “Phone2” } = “” “Did not provide alternate info” “{MERGEFIELD “Phone2″ }” }

        Remember, never type the field braces { } yourself, press Ctrl+F9 to insert them.

        Thanks!!! I was using Phone2 insteadof “Phone2”.

      • #1151459

        { IF { MERGEFIELD “Phone2” } = “” “Did not provide alternate info” “{MERGEFIELD “Phone2″ }” }

        Do you actually need {QUOTE} in this case?
        That’s, {QUOTE{ IF { MERGEFIELD “Phone2” } = “” “Did not provide alternate info” “{MERGEFIELD “Phone2″ }”}}

        Armstrong

    Viewing 0 reply threads
    Reply To: Merge Word Document and Insert Word Field

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: