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

AccuZIP’s Professional Services Team has been a great resource for helping me launch Informed Delivery campaigns for my clients. I am a small direct mail marketing agency specializing in helping my clients find and retain new customers with direct mail. Informed Delivery is the best thing the post office has come up with in my 30+ years in the business. However, just like everything else with the post office, they don't make it easy. AccuZIP has made doing these digital campaigns very simple. I have analyzed campaign results and found the price per click through to the client's website less than an Adword campaign. I am looking forward to working with AccuZIP and their entire Professional Services Team with more clients and campaigns.
S.R., Raleigh, NC