Support 805.461.7300
Sales
Our Technology. Your Success.

Fill Leading Zeros into the ZIP field

Use this command before you validate your database when you're importing an Excel file that has east coast or Puerto Rican addresses (ZIP Codes that have leading zeros). When you open the Excel file in AccuZIP6, the leading zeros that were part of the Excel formatting (but not part of the Excel data, which is key) won't appear in your file when you open the list in AccuZIP6, so the command below will fill the leading zeros back into the ZIP Codes in your database.

REPLACE zip with PADL(ALLT(zip),5,"0") FOR !EMPTY(zip) AND LEN(ALLT(ZIP))<5

« Back to Commands

You are a genius and I have no excuse for not thinking of this before calling. Our customer is good with cutting the tops and bottoms for the booklets to get under 16 ounces. Thank you for getting me out of a jam and thank you even more for offering your help with this project! I decided to switch to AccuZIP after speaking with Steve at the Minuteman Show. I was impressed with his idea of customer service and you have totally proven him right.
M.M., Petaluma, CA