Microsoft KB Archive/126863: Difference between revisions

From BetaArchive Wiki
m (Text replacement - """ to """)
m (Text replacement - "<" to "<")
Line 40: Line 40:
The correct syntax for the BARCODE field code when you use literal text to generate the field code is:
The correct syntax for the BARCODE field code when you use literal text to generate the field code is:


<pre class="CODESAMP">  {BARCODE "123 Oak Street&lt;paragraph mark&gt;
<pre class="CODESAMP">  {BARCODE "123 Oak Street<paragraph mark&gt;
   98052-6399"\u  } </pre>
   98052-6399"\u  } </pre>
The paragraph mark tells Word how to correctly parse the string for the delivery-point information.
The paragraph mark tells Word how to correctly parse the string for the delivery-point information.
Line 48: Line 48:
The structure of the field code is the same as for literal text, but the address information is generated by two merge fields
The structure of the field code is the same as for literal text, but the address information is generated by two merge fields


<pre class="CODESAMP">  {BARCODE "{mergefield street}&lt;paragraph mark&gt;
<pre class="CODESAMP">  {BARCODE "{mergefield street}<paragraph mark&gt;
   {mergefield zip}"\u  } </pre>
   {mergefield zip}"\u  } </pre>
where "mergefield street" is the merge field that contains the street address and "mergefield zip" is the 5+4-digit ZIP Code for the address.
where "mergefield street" is the merge field that contains the street address and "mergefield zip" is the 5+4-digit ZIP Code for the address.

Revision as of 15:30, 20 July 2020

Delivery Point Bar Code Uses 99 in Last Two Digits of Address

Q126863



The information in this article applies to:


  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c





SYMPTOMS

When you use Word's Delivery Point Bar Code option when printing envelopes, Word uses 99 for the last two digits of the street address. This may happen if you use the BARCODE field in a mail merge main document or if you use literal text in the field code.



CAUSE

This error occurs when the syntax for the field code is incorrect. When the syntax is incorrect, Word cannot correctly parse the string for the delivery-point information. Whenever Word cannot correctly determine the delivery-point information, it prints 99.



RESOLUTION

Literal Text

The correct syntax for the BARCODE field code when you use literal text to generate the field code is:

   {BARCODE "123 Oak Street<paragraph mark>
   98052-6399"\u  } 

The paragraph mark tells Word how to correctly parse the string for the delivery-point information.

Mail Merge

The structure of the field code is the same as for literal text, but the address information is generated by two merge fields

   {BARCODE "{mergefield street}<paragraph mark>
   {mergefield zip}"\u  } 

where "mergefield street" is the merge field that contains the street address and "mergefield zip" is the 5+4-digit ZIP Code for the address.



MORE INFORMATION

There are three different types of bar codes: the 5-digit bar code, the ZIP+4 bar code, and the delivery point bar code.

The following is an example of a 5-digit bar code using literal text:

   {BARCODE "12345" \u} 

The following is an example of a ZIP+4 bar code using literal text:

   {BARCODE "12345-6789" \u} 

Additional query words: 6.0 winword word6

Keywords : kbfield
Issue type :
Technology :


Last Reviewed: November 4, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.