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



The information in this article applies to:

  • Microsoft Word for Windows 1.0
  • Microsoft Word for Windows 1.1
  • Microsoft Word for Windows 1.1a
  • Microsoft Word for Windows 2.0
  • Microsoft Word for Windows 2.0a
  • Microsoft Word for Windows 2.0b
  • Microsoft Word for Windows 2.0c
  • Microsoft Word for Windows 6.0
  • Microsoft Word for Windows 6.0a
  • Microsoft Word for Windows 6.0c
  • Microsoft Word for Windows 95
  • Microsoft Word for Windows 95 7.0a
  • Microsoft Word 97 for Windows

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. "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:

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

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:kbfield kbtable kbualink97 kbusage KB99683