Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

avoiding truncating leading zero

Discussion in 'Information Technology' started by ltc, Jul 28, 2006.

  1. ltc

    ltc
    Expand Collapse
    Guest

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

    Similar Threads Forum Date
    Avoiding Negative Vibrations Spiritual Articles Oct 19, 2005

  3. kerry_ja@yahoo.com

    kerry_ja@yahoo.com
    Expand Collapse
    Guest

    Have the zip code as text, not a number
    ltc wrote:
    > How do you prevent the leading zero (in zip codes) from dropping? I am
    > trying to create a table w/ various zip codes.
     
  4. Wayne Morgan

    Wayne Morgan
    Expand Collapse
    Guest

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

    --
    Wayne Morgan
    MS Access MVP


    "ltc" <ltc@discussions.microsoft.com> wrote in message
    news:9F571E2C-119C-4DDE-993F-83741F57D20E@microsoft.com...
    > How do you prevent the leading zero (in zip codes) from dropping? I am
    > trying to create a table w/ various zip codes.
     
  5. Joseph Meehan

    Joseph Meehan
    Expand Collapse
    Guest

    ltc wrote:
    > 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.

    --
    Joseph Meehan

    Dia duit
     
  6. TheNovice

    TheNovice
    Expand Collapse
    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.


    --
    -The Novice
    Learn Today, Teach Tomorrow

    Great Success is ones ability to ask for Help.


    "ltc" wrote:

    > How do you prevent the leading zero (in zip codes) from dropping? I am
    > trying to create a table w/ various zip codes.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page