Article ID: 110951 - Last Review: November 15, 2004 - Revision: 4.0 Works: How to Sort a Database with Hyphenated Zip CodesThis article was previously published under Q110951 On This PageSYMPTOMS
It is often useful to sort the database according to zip code before
actually printing envelopes or mailing labels.
If some of the records in the database contain zip codes formatted in the hyphenated format
ZIP + four numbers (for example, 99999-5555)
while others are in the five-digit (no hyphen) format, the records are
sorted incorrectly. The five-digit zip codes will appear at the top. This
happens because numbers that contain hyphens are treated as text by Works.
When a database is sorted by a field that contains both text and numbers,
the numbers are pushed to the top.
RESOLUTION
Try one of the following methods:
Method 1If you format the field as text before entering the zip codes, you can then correctly sort the fields.For more information about how to perform this task in Works, see your Works printed documentation or online Help. Method 2To correctly sort the database by zip code, do the following:
Method 3
MORE INFORMATION
The above steps work because of Works ability to handle text in formulas.
For more information about how to perform these tasks in Works, see your Works printed documentation or online Help. APPLIES TO
| Article Translations
|

Back to the top
