Welcome to SPN

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

Sign Up Now!

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.
     

Share This Page