Support 805.461.7300
Sales
Our Technology. Your Success.

Populate City and St when you have only address and ZIP

USE IN IIF(USED('_USZIPS'),SELECT('_USZIPS'),0)
REPLACE ZIP WITH ALLT(SUBSTR(ADDRESS,RAT(" ",ALLT(ADDRESS)))),;
    ADDRESS WITH LEFT(ADDRESS,RAT(" ",ALLT(ADDRESS)));
    FOR EMPTY(ZIP) AND ISDIGIT(RIGHT(ALLT(ADDRESS),1))
REPLACE ADDRESS WITH ALLT(ADDRESS)+" "+ZIP,;
    ZIP WITH "" FOR ISALPHA(ALLT(ZIP))
PUBLIC COMALIAS
COMALIAS=ALIAS()
USE (ADDBS(XDEFFLDR)+"DMM\_USZIPS.DBF") IN 0 ORDER USZIP
REPLACE CITY WITH _USZIPS.PREFCITY,;
    ST WITH _USZIPS.ST FOR SEEK(LEFT(ZIP,5),'_USZIPS')
USE IN IIF(USED('_USZIPS'),SELECT('_USZIPS'),0)

« Back to Commands

I appreciate [AccuZIP support technician] Geoff! He has over and over with a positive attitude given us exceptional support. He is a key asset to us and we are so thankful for him. I just wanted to let you all know that he has so much patience and knowledge. I am sure you know but he is a KEEPER for your company.
K.P., Colorado Springs, CO