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

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)
    > >
    > >
    > >
     
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