Microsoft KB Archive/69319

= SKIPIF No Longer Functions Properly if Used With NEXT Field =

Article ID: 69319

Article Last Modified on 11/16/2006

-

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 Q69319



SUMMARY
The SKIPIF field successfully skips specified data records to create individual documents for each data record. However, SKIPIF does not work properly when combined with the NEXT field.



MORE INFORMATION
The SKIPIF field compares a data item against specified guidelines made about a data record. If the comparison is TRUE, the present data record is skipped, and Word for Windows does not print it. The next record is selected and compared. If the comparison is FALSE, the data record is printed, and Word for Windows moves on to check the next record.

SKIPIF successfully skips specified data records to create individual documents for each data record. The following example illustrates this:

Word 6.0, 7.0, 97
{skipif {zip} = &quot;98000&quot;}{name} {street} {city}, {state} {zip}

Word 1.0, 2.0
{data c:\\winword\\mydoc.doc}{skipif {zip} = &quot;98000&quot;}{name} {street} {city}, {state} {zip} This example successfully skips data records that have a zip code of 98000 and prints each data record that does not have a 98000 zip code on a new sheet of paper.

Because the SKIPIF field does not function properly with the NEXT field, if you try to use the SKIPIF and NEXT fields to create a list or address labels, Word for Windows does not print or skip data records properly. The following example illustrates this:

Word 6.0, 7.0, 97
{skipif {zip} = &quot;98000&quot;}{name} {street} {city}, {state} {zip}

{next}{skipif {zip} = &quot;98000&quot;}{name} {street} {city}, {state} {zip}

Word 1.0, 2.0
{data c:\\winword\\mydoc.doc}{skipif {zip} = &quot;98000&quot;}{name} {street} {city}, {state} {zip}

{next}{skipif {zip} = &quot;98000&quot;}{name} {street} {city}, {state} {zip} This example results in erratic placement of data records in your document or an empty print merged document.

Additional query words: 6.0 skipif next winword2 winword word7 7.0 word95 word6 word97

Keywords: kbmerge kbfield KB69319

-

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

© Microsoft Corporation. All rights reserved.