Re: Leading with 0's in a table.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Debra Ann

Let's make sure we're talking about the same thing, first.

Numbers are things you add/subtract/multiply/divide. Any zeros that come at
the beginning are meaningless (that is, "000004236" = "4236").

If you'll be "doing math", then you have numbers. You can change the format
to change how they appear.

But if this is actually more of a "code", and "doing math" is not needed,
then change it to a text field. While you still will have the option of
entering "4236" and displaying "000004236" (via formatting), you could also
rig your form to convert anything less than nine characters to be
zero-padded when stored. (NOTE: you ARE working with your users via a
form, right?!)

It's a bit tough offering appropriate suggestions until we have a clearer
picture of what you are working with...

Regards

Jeff Boyce
Microsoft Access MVP


"Debra Ann" <DebraAnn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D9E38196-FEC7-4F0B-8CA0-3DF23DCF7107@xxxxxxxxxxxxxxxx
MS Access 2003:

I have a number field in a table that must be nine characters and fill
with
0's in the front of the number depending on how big it is. How do I mask
it
so that if the person types 4236 then it shows up as 000004236?

Thanks


.



Relevant Pages

  • Re: Delete Hit Counter/Reset
    ... there were 11 characters shown all ... zeros except for the end digit which I changed to zero. ... >FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... >> just publishing straight from Front Page. ...
    (microsoft.public.frontpage.client)
  • Re: range as test
    ... padded with leading zeros to provide a string length to whatever you want. ... simply copy the other cells with alpha and alpha/numeric data. ... a mixture of characters. ... They should all be numbers then and sort correctly. ...
    (microsoft.public.excel.programming)
  • Re: Math
    ... transactions..this acct number is 20 characters. ... So im trying to figure out a way to piggy back on a incomming acct no...with ... transaction, the myid part is our transaction id ... i want to do a math computation to represent any number in smaller ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Symbol Font correct on IE, but gibberish on FireFox
    ... It's not just non-IE users. ... Anyone with IE set to ignore font settings on ... replace characters with font declarations into the characters they are meant ... symbols using regular html in all my math pages. ...
    (alt.html)
  • RE: Automatic Preceeding Zeros in a field e.g. 00001234
    ... > user having to input the zeros. ... If your objective is to always have 8 characters in the table, then it should be type String. ... Dim str as String ...
    (microsoft.public.access.tablesdbdesign)