Support 805.461.7300
Sales
Our Technology. Your Success.

Remove Leading Zeros from Address

Description

This command will remove any leading zeros from the address field, e.g. 000345 Main St will convert to 345 Main St. More examples appear below.

The Command At Work

Before Command After Command
Before running command
Before running command

The Command

Copy this command, then paste it into the large text area of the command window:

Replace address with alltrim(str(val(left(address,at(" ",address)))))+substr(address,at(" ",address)) for left(address,1)="0"

After clicking RUN, the leading zeros in the address field will be stripped from the field, and the remainder of the address information will be left justified. Your addresses will now be ready for validation.

« Back to Commands

We have partnered with AccuZIP for several years, and they clearly are the best. The software is second to none and what is even better is the support they offer. Their team provides the best customer service and they are able to help us with every challenge and question we have asked. We all know that the mailing and USPS guidelines can be complex, but with AccuZIP we have a competitive edge against our competition. If you want to succeed in direct and EDDM mailing, go with the best strategic partner in the business, AccuZIP!
J.P., Bradenton, FL