View Single Post
  #1   Report Post  
Zachary
 
Posts: n/a
Default Still have Issues with leading zeros after applying switches

I am experiencing the exact same situation as Richard originally wrote on
2/4/05. When merging zip codes, leading zero is dropped on 5 digit zip code;
10 digit with leading zero works fine.
Additional background-
1. My data source is provided in html format.
2. In data source, zip codes can be either be 5 digit or 10 digit (9 digit
plus the '-' in between zip and 4 ext. The '-' cannot be easily removed)

Went to gmayor.com as suggested in several postings. The \# "00000" switch
works great if the data source has 5 digit zip codes only. In my case, If a
10 digit zip is passed in, then the formatting treat it like a subtraction
calculation. So 12345-6789 ends up as '05556' and 01234-5678 ends up as
'-04444'

I tried different variations on the swith syntax with no luck. Any
suggestions would be greatly appreciated!

--
Zachary