avoiding truncating leading zero

G

Guest

How do you prevent the leading zero (in zip codes) from dropping? I am
trying to create a table w/ various zip codes.
 
W

Wayne Morgan

The easiest way is by making the field a text field instead of a number
field.
 
J

Joseph Meehan

ltc said:
How do you prevent the leading zero (in zip codes) from dropping? I
am trying to create a table w/ various zip codes.

Use number only when you need to use them in calculations or to sort
them when there may not be leading zeros with the same total number of
characters.

Since zip codes are not calculated, then you will want to use a text
type. If you want to sort them, be sure to include zeros for the plus 4
part as well.
 
G

Guest

Best practices show that Zipcodes are actually Text Fields, Take Canada's
Postal Codes, they have a combination of Numeric and Alpha, which constitutes
it as a Text Filed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top