Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import zipcode from excel to dbf format without loosing leading zero's

Status
Not open for further replies.

rollypac

Programmer
Jun 13, 2003
23
0
0
US
I have zipcodes that are in zipcode format in my speadsheet (06549, 05489). When I import or save them as dbf format I loose the leading zero's. Any ideas how to retain the leading zero's or add them after the fact? When they are in the dbf format they are characters.
 
Is there a reason for not formatting the cells as Text in Excel? Doing so would retain the leading zeros when importing and exporting, and they will still sort correctly.
 
The spreadsheet came to me with the zip code column formatted as special/zip code and when I reformat as text it removes the leading zero's.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top