Welcome to SPN

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

Sign Up Now!

Leading 0's not showing up

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

  1. pokdbz

    pokdbz
    Expand Collapse
    Guest

    I have this as an input mask 000\-00\-0000;0;*
    the leading 0's are not showing up it shows up like this
    Original 007-77-7777
    wong 777-77-77

    How do I change it so it shows the leading 0's?
     
  2. Loading...

    Similar Threads Forum Date
    General Leading Sikh activist discusses U.S. religious liberty Hard Talk Mar 28, 2013
    Professor Dhunda: Intellectual or Misleading? Hard Talk Feb 21, 2012
    India's Leading Export: CEO's Inspirational Stories Jul 23, 2011
    Pacific China Should Listen to Kissinger: You're on Top Now. Start leading Breaking News Jul 5, 2011
    SALDEF SALDEF Secures Apology From FBI Director For Misleading Remarks About Sikh Americans Sikh Organisations Dec 11, 2010

  3. Joseph Meehan

    Joseph Meehan
    Expand Collapse
    Guest

    pokdbz wrote:
    > I have this as an input mask 000\-00\-0000;0;*
    > the leading 0's are not showing up it shows up like this
    > Original 007-77-7777
    > wong 777-77-77
    >
    > How do I change it so it shows the leading 0's?


    Where did you set the input mask and where are you imputing the data and
    where is it not showing up? (Table, form, report, etc.)

    --
    Joseph Meehan

    Dia duit
     
  4. pokdbz

    pokdbz
    Expand Collapse
    Guest

    I set it in the properties on a form in the text box. It is not showing up
    in the text box.

    "Joseph Meehan" wrote:

    > pokdbz wrote:
    > > I have this as an input mask 000\-00\-0000;0;*
    > > the leading 0's are not showing up it shows up like this
    > > Original 007-77-7777
    > > wong 777-77-77
    > >
    > > How do I change it so it shows the leading 0's?

    >
    > Where did you set the input mask and where are you imputing the data and
    > where is it not showing up? (Table, form, report, etc.)
    >
    > --
    > Joseph Meehan
    >
    > Dia duit
    >
    >
    >
     
  5. Jerry Whittle

    Jerry Whittle
    Expand Collapse
    Guest

    Is the field Text or a Number in the table? Even with an input mask, a number
    field will not retain leading zeros. One of the reasons that things like
    Social Security Numbers and ZipCodes should be stored in Text fields. If you
    ain't doing math on it, it ain't a number. For example, I can't think of a
    good reason to multiply a SSN by 2.
    --
    Jerry Whittle
    Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

    "pokdbz" wrote:

    > I set it in the properties on a form in the text box. It is not showing up
    > in the text box.
    >
    > "Joseph Meehan" wrote:
    >
    > > pokdbz wrote:
    > > > I have this as an input mask 000\-00\-0000;0;*
    > > > the leading 0's are not showing up it shows up like this
    > > > Original 007-77-7777
    > > > wong 777-77-77
    > > >
    > > > How do I change it so it shows the leading 0's?

    > >
    > > Where did you set the input mask and where are you imputing the data and
    > > where is it not showing up? (Table, form, report, etc.)
    > >
    > > --
    > > Joseph Meehan
    > >
    > > Dia duit
     
  6. pokdbz

    pokdbz
    Expand Collapse
    Guest

    Yes the SSN is being stored as Text

    "Jerry Whittle" wrote:

    > Is the field Text or a Number in the table? Even with an input mask, a number
    > field will not retain leading zeros. One of the reasons that things like
    > Social Security Numbers and ZipCodes should be stored in Text fields. If you
    > ain't doing math on it, it ain't a number. For example, I can't think of a
    > good reason to multiply a SSN by 2.
    > --
    > Jerry Whittle
    > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
    >
    > "pokdbz" wrote:
    >
    > > I set it in the properties on a form in the text box. It is not showing up
    > > in the text box.
    > >
    > > "Joseph Meehan" wrote:
    > >
    > > > pokdbz wrote:
    > > > > I have this as an input mask 000\-00\-0000;0;*
    > > > > the leading 0's are not showing up it shows up like this
    > > > > Original 007-77-7777
    > > > > wong 777-77-77
    > > > >
    > > > > How do I change it so it shows the leading 0's?
    > > >
    > > > Where did you set the input mask and where are you imputing the data and
    > > > where is it not showing up? (Table, form, report, etc.)
    > > >
    > > > --
    > > > Joseph Meehan
    > > >
    > > > Dia duit

    >
     
  7. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "pokdbz" <pokdbz@discussions.microsoft.com> wrote in message
    news:1B2B7650-9975-4F88-BE78-E2A978800362@microsoft.com
    > Yes the SSN is being stored as Text


    Are you sure? Please double-check the field definition in the table
    design. What you describe sounds like the field type is Number.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
  8. pokdbz

    pokdbz
    Expand Collapse
    Guest

    I think I see what the problem is. I have this statement which pulls the SSN
    from the previous form:
    If Me.OpenArgs <> "" Then Me.SSN.DefaultValue = Me.OpenArgs

    The defaultvalue only pulls number which removes the previous 0's.
    I tried to take out the .DefaultValue but that just resulted in an error.
    Do you have any idea how to correct this so it lets me pull text instead of
    a number?

    "Dirk Goldgar" wrote:

    > "pokdbz" <pokdbz@discussions.microsoft.com> wrote in message
    > news:1B2B7650-9975-4F88-BE78-E2A978800362@microsoft.com
    > > Yes the SSN is being stored as Text

    >
    > Are you sure? Please double-check the field definition in the table
    > design. What you describe sounds like the field type is Number.
    >
    > --
    > Dirk Goldgar, MS Access MVP
    > www.datagnostics.com
    >
    > (please reply to the newsgroup)
    >
    >
    >
     
  9. pokdbz

    pokdbz
    Expand Collapse
    Guest

    Found the problem thanks

    "pokdbz" wrote:

    > I think I see what the problem is. I have this statement which pulls the SSN
    > from the previous form:
    > If Me.OpenArgs <> "" Then Me.SSN.DefaultValue = Me.OpenArgs
    >
    > The defaultvalue only pulls number which removes the previous 0's.
    > I tried to take out the .DefaultValue but that just resulted in an error.
    > Do you have any idea how to correct this so it lets me pull text instead of
    > a number?
    >
    > "Dirk Goldgar" wrote:
    >
    > > "pokdbz" <pokdbz@discussions.microsoft.com> wrote in message
    > > news:1B2B7650-9975-4F88-BE78-E2A978800362@microsoft.com
    > > > Yes the SSN is being stored as Text

    > >
    > > Are you sure? Please double-check the field definition in the table
    > > design. What you describe sounds like the field type is Number.
    > >
    > > --
    > > Dirk Goldgar, MS Access MVP
    > > www.datagnostics.com
    > >
    > > (please reply to the newsgroup)
    > >
    > >
    > >
     

Share This Page