Microsoft KB Archive/99683

= WD: IF Field Won't Display Table or Linked Graphic as Result =

Article ID: 99683

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Word 1.0 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q99683



SUMMARY
You cannot insert a table or a linked graphic into a Word document as the result of an IF field that contains INCLUDE, IMPORT, or AUTOTEXT (or GLOSSARY field in Word 1.x and 2.x) fields.



WORKAROUND
To display a linked graphic or a table as the result of a conditional IF field, nest the IF field inside an INCLUDE, IMPORT, or AUTOTEXT (or GLOSSARY) field, so that the IF field updates first. For example, you could nest the fields as follows:

{INCLUDE {IF conditionalTest table.doc falseResult}}



MORE INFORMATION
The following examples illustrate the problem that occurs when you try to insert a linked graphic or table as the result of an INCLUDE, IMPORT, or AUTOTEXT (or GLOSSARY) field nested inside an IF field.

In the following examples, a table or a linked graphic is used as results in an IF field. TABLE.DOC is a file that contains a table. &quot;Glossary table&quot; is a glossary entry that contains a table. PICTURE.WMF is a Windows metafile graphic. &quot;Glossary picture&quot; is a glossary entry containing a linked graphic.

{if conditionalTest {include TABLE.DOC} falseResult}

{if conditionalTest {glossary table} falseResult}

{if conditionalTest {import PICTURE.WMF} falseResult}

{if conditionalTest {glossary picture} falseResult}

If conditionalTest is true in any of the above examples, the table or picture will not display when you update the field. Any text above or below the table in either TABLE.DOC or the table glossary will display correctly. Any text above or below the graphic in the picture glossary will display correctly. Embedded graphics and graphics that are not linked will display correctly.

For more information on importing graphics as the result of a conditional field, query on the following words in the Microsoft Knowledge Base:

importing and graphics and condition

Microsoft has confirmed this to be a problem in Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Reference:

&quot;Microsoft Word for Windows User's Reference,&quot; version 1.0, pages 97-99

Additional query words: 1.10a 2.0 6.0 word6 7.0 word95 winword word7 winword2 2.0a-cd word97

Keywords: kbualink97 kbtable kbfield kbusage KB99683

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.