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

ID: Q99683

The information in this article applies to:

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. "Glossary table" is a glossary entry that contains a table. PICTURE.WMF is a Windows metafile graphic. "Glossary picture" 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(s):

"Microsoft Word for Windows User's Reference," version 1.0, pages 97-99

KBCategory: kbusage KBSubcategory: kbfield kbtable Additional query words: 1.0 1.10 1.10a 2.0 6.0 word6 7.0 word95 winword word7 winword2 2.0a 2.0a-cd 2.0b 2.0c word97

Keywords          : kbualink97 kbusage kbfield kbtable 
Version           : 1.x 2.x 6.0 6.0a 6.0c 7.0 7.
Platform          : WINDOWS

Last Reviewed: February 6, 1998